buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void tearDown() { action.teardown(Collections.<String, Object>emptyMap()); } }; } }); } if (metaData.getDistributable() != null) { D...
public void tearDown() { action.teardown(Collections.<String, Object>emptyMap()); } }; } }); } if (metaData.getDistributable() != null) { D...
protected Bag<E> getBag() { return (Bag<E>) collection; }
protected Bag<E> getBag() { return (Bag<E>) decorated(); }
protected SortedBag<E> getSortedBag() { return (SortedBag<E>) collection; }
protected SortedBag<E> getSortedBag() { return (SortedBag<E>) decorated(); }
public static <E> BoundedCollection<E> unmodifiableBoundedCollection(Collection<? extends E> coll) { if (coll == null) { throw new IllegalArgumentException("The collection must not be null"); } // handle decorators for (int i = 0; i < 1000; i++) { // counter to prevent ...
public static <E> BoundedCollection<E> unmodifiableBoundedCollection(Collection<? extends E> coll) { if (coll == null) { throw new IllegalArgumentException("The collection must not be null"); } // handle decorators for (int i = 0; i < 1000; i++) { // counter to prevent ...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { final ServiceName hqServiceName = MessagingServices.getHornetQServiceName(PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR))); final String operationName = oper...
protected void executeRuntimeStep(OperationContext context, ModelNode operation) throws OperationFailedException { final ServiceName hqServiceName = MessagingServices.getHornetQServiceName(PathAddress.pathAddress(operation.get(ModelDescriptionConstants.OP_ADDR))); final String operationName = oper...
public static EmbeddedDatabaseBuilder relativeTo(Class clazz) { return new EmbeddedDatabaseBuilder(new ClassRelativeResourceLoader(clazz)); } }
public static EmbeddedDatabaseBuilder relativeTo(Class<?> clazz) { return new EmbeddedDatabaseBuilder(new ClassRelativeResourceLoader(clazz)); } }
public static boolean voidMethodCalled = false; }
public static volatile boolean voidMethodCalled = false; }
package org.jboss.as.domain.management.security.adduser; /* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free ...
package org.jboss.as.domain.management.security.adduser; /* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free ...
package org.jboss.as.domain.management.security.adduser; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free ...
package org.jboss.as.domain.management.security.adduser; /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free ...
package org.jboss.as.domain.management.security.adduser; /* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free ...
package org.jboss.as.domain.management.security.adduser; /* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free ...
public LdapEntry[] search(DirContext dirContext, LdapEntry entry) throws IOException, NamingException { Set<LdapEntry> foundEntries = new HashSet<LdapEntry>(); // Load the list of group. Attributes groups = dirContext.getAttributes(entry.getDistinguishedName(), new String[] {...
public LdapEntry[] search(DirContext dirContext, LdapEntry entry) throws IOException, NamingException { Set<LdapEntry> foundEntries = new HashSet<LdapEntry>(); // Load the list of group. Attributes groups = dirContext.getAttributes(entry.getDistinguishedName(), new String[] {...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model) throws OperationFailedException { String name = JcaBootstrapContextDefinition.BootstrapCtxParameters.NAME.getAttribute().resolveModelAttribute(context, model).asString(); String workmanag...
protected void performRuntime(final OperationContext context, final ModelNode operation, final ModelNode model) throws OperationFailedException { String name = JcaBootstrapContextDefinition.BootstrapCtxParameters.NAME.getAttribute().resolveModelAttribute(context, model).asString(); String workmanag...
public void processConfigBeanDefinitions(BeanDefinitionRegistry registry) { Set<BeanDefinitionHolder> configCandidates = new LinkedHashSet<BeanDefinitionHolder>(); for (String beanName : registry.getBeanDefinitionNames()) { BeanDefinition beanDef = registry.getBeanDefinition(beanName); if (checkConfiguration...
public void processConfigBeanDefinitions(BeanDefinitionRegistry registry) { Set<BeanDefinitionHolder> configCandidates = new LinkedHashSet<BeanDefinitionHolder>(); for (String beanName : registry.getBeanDefinitionNames()) { BeanDefinition beanDef = registry.getBeanDefinition(beanName); if (checkConfiguration...
public interface ConfigurationPersister { /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you c...
public interface ConfigurationPersister { /* * JBoss, Home of Professional Open Source. * Copyright 2011, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you c...
private File[] getFilesFromProperty(final String name, final Properties props) { String sep = props.getProperty("path.separator"); String value = props.getProperty(name, null); if (value != null) { final String[] paths = value.split(Pattern.quote(sep)); final int len ...
private File[] getFilesFromProperty(final String name, final Properties props) { String sep = SecurityActions.getSystemProperty("path.separator"); String value = props.getProperty(name, null); if (value != null) { final String[] paths = value.split(Pattern.quote(sep)); ...
public long contentLength() throws IOException { URL url = getURL(); if (ResourceUtils.isFileURL(url)) { // Proceed with file system resolution... return super.contentLength(); } else { // Try a URL connection content-length header... URLConnection con = url.openConnection(); con.setUseCaches(fa...
public long contentLength() throws IOException { URL url = getURL(); if (ResourceUtils.isFileURL(url)) { // Proceed with file system resolution... return getFile().length(); } else { // Try a URL connection content-length header... URLConnection con = url.openConnection(); con.setUseCaches(false...
public void registerAttributes(ManagementResourceRegistration resourceRegistration) { super.registerAttributes(resourceRegistration); for (final ArchiveValidationParameters parameter : ArchiveValidationParameters.values()) { resourceRegistration.registerReadWriteAttribute(parameter.getA...
public void registerAttributes(ManagementResourceRegistration resourceRegistration) { super.registerAttributes(resourceRegistration); for (final ArchiveValidationParameters parameter : ArchiveValidationParameters.values()) { resourceRegistration.registerReadWriteAttribute(parameter.getA...
public void registerAttributes(ManagementResourceRegistration resourceRegistration) { super.registerAttributes(resourceRegistration); for (final BeanValidationParameters parameter : BeanValidationParameters.values()) { resourceRegistration.registerReadWriteAttribute(parameter.getAttribu...
public void registerAttributes(ManagementResourceRegistration resourceRegistration) { super.registerAttributes(resourceRegistration); for (final BeanValidationParameters parameter : BeanValidationParameters.values()) { resourceRegistration.registerReadWriteAttribute(parameter.getAttribu...
public void registerAttributes(ManagementResourceRegistration resourceRegistration) { super.registerAttributes(resourceRegistration); for (final CcmParameters parameter : CcmParameters.values()) { if (parameter != CcmParameters.INSTALL) { resourceRegistration.registerRea...
public void registerAttributes(ManagementResourceRegistration resourceRegistration) { super.registerAttributes(resourceRegistration); for (final CcmParameters parameter : CcmParameters.values()) { if (parameter != CcmParameters.INSTALL) { resourceRegistration.registerRea...
public void testSuffix() throws Exception { IOFileFilter filter = new SuffixFileFilter(new String[] { "tes", "est" }); File testFile = new File( "test" ); File fredFile = new File( "fred" ); assertFiltering(filter, new File("fred.tes"), true); assertFiltering(filter, new File...
public void testSuffix() throws Exception { IOFileFilter filter = new SuffixFileFilter(new String[] { "tes", "est" }); File testFile = new File( "test" ); File fredFile = new File( "fred" ); assertFiltering(filter, new File("fred.tes"), true); assertFiltering(filter, new File...
package org.jboss.as.patching.metadata; /* * JBoss, Home of Professional Open Source. * Copyright 2013, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can...
package org.jboss.as.patching.metadata; /* * JBoss, Home of Professional Open Source. * Copyright 2013, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can...
package org.jboss.as.patching.metadata.impl; /* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; yo...
package org.jboss.as.patching.metadata.impl; /* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; yo...
package org.jboss.as.patching.metadata.impl; /* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; yo...
package org.jboss.as.patching.metadata.impl; /* * JBoss, Home of Professional Open Source. * Copyright 2012, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; yo...
public void testRemoveBundle() throws Exception { PatchInfo info = new LocalPatchInfo(randomString(), PatchInfo.BASE, Collections.<String>emptyList(), env); // create a bundle in the AS7 installation String bundleName = randomString(); File bundlesDir = env.getInstalledImage().getB...
public void testRemoveBundle() throws Exception { PatchInfo info = new LocalPatchInfo(randomString(), PatchInfo.BASE, Collections.<String>emptyList(), env); // create a bundle in the AS7 installation String bundleName = randomString(); File bundlesDir = env.getInstalledImage().getB...
public SimpAnnotationMethodMessageHandler annotationMethodMessageHandler() { SimpAnnotationMethodMessageHandler handler = new SimpAnnotationMethodMessageHandler(brokerMessagingTemplate(), webSocketResponseChannel()); handler.setDestinationPrefixes(getMessageBrokerConfigurer().getAnnotationMethodDestinationPr...
public SimpAnnotationMethodMessageHandler annotationMethodMessageHandler() { SimpAnnotationMethodMessageHandler handler = new SimpAnnotationMethodMessageHandler(brokerMessagingTemplate(), webSocketResponseChannel()); handler.setDestinationPrefixes(getMessageBrokerConfigurer().getApplicationDestinationPrefixe...
public void configureMessageBroker(MessageBrokerConfigurer configurer) { configurer.setAnnotationMethodDestinationPrefixes("/app"); configurer.enableSimpleBroker("/topic", "/queue"); } }
public void configureMessageBroker(MessageBrokerConfigurer configurer) { configurer.setApplicationDestinationPrefixes("/app"); configurer.enableSimpleBroker("/topic", "/queue"); } }
private static ConfigurationBuilderHolder load(String resource) { URL url = find(resource, CacheAdd.class.getClassLoader()); log.debugf("Loading Infinispan defaults from %s", url.toString()); try { InputStream input = url.openStream(); Parser parser = new Parser(Parse...
private static ConfigurationBuilderHolder load(String resource) { URL url = find(resource, CacheAdd.class.getClassLoader()); log.debugf("Loading Infinispan defaults from %s", url.toString()); try { InputStream input = url.openStream(); Parser parser = new Parser(Parse...
protected void processExpirationPassivation() { boolean expire = maxInactiveInterval >= 0; boolean passivate = isPassivationEnabled(); long passivationMax = passivationMaxIdleTime * 1000L; long passivationMin = passivationMinIdleTime * 1000L; log.trace("processExpirationPas...
protected void processExpirationPassivation() { boolean expire = maxInactiveInterval >= 0; boolean passivate = isPassivationEnabled(); long passivationMax = passivationMaxIdleTime * 1000L; long passivationMin = passivationMinIdleTime * 1000L; log.trace("processExpirationPas...
public void invoke(final Endpoint endpoint, final Invocation wsInvocation) throws Exception { try { // prepare for invocation onBeforeInvocation(wsInvocation); // prepare invocation data final ComponentView componentView = getComponentView(); final Method method = g...
public void invoke(final Endpoint endpoint, final Invocation wsInvocation) throws Exception { try { // prepare for invocation onBeforeInvocation(wsInvocation); // prepare invocation data final ComponentView componentView = getComponentView(); final Method method = g...
public Interceptor create(InterceptorFactoryContext context) { AtomicReference<Serializable> sessionIdReference = (AtomicReference<Serializable>) context.getContextData().get(StatefulSessionComponent.SESSION_ID_REFERENCE_KEY); return new StatefulComponentInstanceDestroyInterceptor(sessionIdReference...
public Interceptor create(InterceptorFactoryContext context) { AtomicReference<byte[]> sessionIdReference = (AtomicReference<byte[]>) context.getContextData().get(StatefulSessionComponent.SESSION_ID_REFERENCE_KEY); return new StatefulComponentInstanceDestroyInterceptor(sessionIdReference); }
@MessageLogger(projectCode = "JBAS") /* * JBoss, Home of Professional Open Source. * Copyright 2013, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can re...
@MessageLogger(projectCode = "JBAS") /* * JBoss, Home of Professional Open Source. * Copyright 2013, Red Hat, Inc., and individual contributors * as indicated by the @author tags. See the copyright.txt file in the * distribution for a full listing of individual contributors. * * This is free software; you can re...
public void noWarningTest() throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader( new FileInputStream(logFile), StandardCharsets.UTF_8)); String line; while ((line = br.readLine()) != null) { // Look for message id in order to support all languages. if (line.contains("WFLYLOG...
public void noWarningTest() throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader( new FileInputStream(logFile), StandardCharsets.UTF_8)); String line; while ((line = br.readLine()) != null) { // Look for message id in order to support all languages. if (line.contains("JBAS011...
public void warningMessageTest() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader( new FileInputStream(loggingTestLog), StandardCharsets.UTF_8)); String line; boolean warningFound = false; while ((line = br.readLine()) != null) { // Look for message id in order to suppor...
public void warningMessageTest() throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader( new FileInputStream(loggingTestLog), StandardCharsets.UTF_8)); String line; boolean warningFound = false; while ((line = br.readLine()) != null) { // Look for message id in order to suppor...
public void testWriteDiscoveryGroupAttributeWhenConnectorIsAlreadyDefined() throws Exception { // /subsystem=messaging/hornetq-server=default/connection-factory=testCF:add(connector={"in-vm" => undefined}, entries=["java:/jms/testCF"]) final ModelNode add = new ModelNode(); add.get(OP).set(A...
public void testWriteDiscoveryGroupAttributeWhenConnectorIsAlreadyDefined() throws Exception { // /subsystem=messaging/hornetq-server=default/connection-factory=testCF:add(connector={"in-vm" => undefined}, entries=["java:/jms/testCF"]) final ModelNode add = new ModelNode(); add.get(OP).set(A...
private static void executeWithFailure(ModelControllerClient client, ModelNode operation) throws IOException { ModelNode result = client.execute(operation); assertEquals(result.toJSONString(true), FAILED, result.get(OUTCOME).asString()); assertTrue(result.toJSONString(true), result.get(FAILU...
private static void executeWithFailure(ModelControllerClient client, ModelNode operation) throws IOException { ModelNode result = client.execute(operation); assertEquals(result.toJSONString(true), FAILED, result.get(OUTCOME).asString()); assertTrue(result.toJSONString(true), result.get(FAILU...
protected void setResult(OperationContext context, final String attributeName, final Service<?> service) throws OperationFailedException { BoundedQueueThreadPoolService bounded = (BoundedQueueThreadPoolService) service; if(attributeName.equals(CommonAttributes.CURRENT_THREAD_COUNT)) { ...
protected void setResult(OperationContext context, final String attributeName, final Service<?> service) throws OperationFailedException { BoundedQueueThreadPoolService bounded = (BoundedQueueThreadPoolService) service; if(attributeName.equals(CommonAttributes.CURRENT_THREAD_COUNT)) { ...
public synchronized ManagedQueueExecutorService getValue() throws IllegalStateException { final ManagedQueueExecutorService value = this.executor; if (value == null) { throw ThreadsLogger.ROOT_LOGGER.boundedQueueThreadPoolExecutorUninitialized(); } return value; }
public synchronized ManagedQueueExecutorService getValue() throws IllegalStateException { final ManagedQueueExecutorService value = this.executor; if (value == null) { throw ThreadsMessages.MESSAGES.boundedQueueThreadPoolExecutorUninitialized(); } return value; }
public ManagedExecutorService(ExecutorService executor) { if(executor == null) { throw ThreadsLogger.ROOT_LOGGER.nullExecutor(); } this.executor = protectExecutor(executor); }
public ManagedExecutorService(ExecutorService executor) { if(executor == null) { throw ThreadsMessages.MESSAGES.nullExecutor(); } this.executor = protectExecutor(executor); }
protected void setResult(OperationContext context, final String attributeName, final Service<?> service) throws OperationFailedException { final QueuelessThreadPoolService pool = (QueuelessThreadPoolService) service; if(attributeName.equals(CommonAttributes.CURRENT_THREAD_COUNT)) { ...
protected void setResult(OperationContext context, final String attributeName, final Service<?> service) throws OperationFailedException { final QueuelessThreadPoolService pool = (QueuelessThreadPoolService) service; if(attributeName.equals(CommonAttributes.CURRENT_THREAD_COUNT)) { ...
public synchronized ManagedQueuelessExecutorService getValue() throws IllegalStateException { final ManagedQueuelessExecutorService value = this.executor; if (value == null) { throw ThreadsLogger.ROOT_LOGGER.queuelessThreadPoolExecutorUninitialized(); } return value; ...
public synchronized ManagedQueuelessExecutorService getValue() throws IllegalStateException { final ManagedQueuelessExecutorService value = this.executor; if (value == null) { throw ThreadsMessages.MESSAGES.queuelessThreadPoolExecutorUninitialized(); } return value; }...
protected void setResult(OperationContext context, final String attributeName, final Service<?> service) throws OperationFailedException { final ScheduledThreadPoolService pool = (ScheduledThreadPoolService) service; if(attributeName.equals(CommonAttributes.ACTIVE_COUNT)) { c...
protected void setResult(OperationContext context, final String attributeName, final Service<?> service) throws OperationFailedException { final ScheduledThreadPoolService pool = (ScheduledThreadPoolService) service; if(attributeName.equals(CommonAttributes.ACTIVE_COUNT)) { c...
public synchronized ManagedScheduledExecutorService getValue() throws IllegalStateException { final ManagedScheduledExecutorService value = this.executor; if (value == null) { throw ThreadsLogger.ROOT_LOGGER.scheduledThreadPoolExecutorUninitialized(); } return value; ...
public synchronized ManagedScheduledExecutorService getValue() throws IllegalStateException { final ManagedScheduledExecutorService value = this.executor; if (value == null) { throw ThreadsMessages.MESSAGES.scheduledThreadPoolExecutorUninitialized(); } return value; }...
public synchronized ThreadFactory getValue() throws IllegalStateException { final ThreadFactory value = this.value; if (value == null) { throw ThreadsLogger.ROOT_LOGGER.threadFactoryUninitialized(); } return value; }
public synchronized ThreadFactory getValue() throws IllegalStateException { final ThreadFactory value = this.value; if (value == null) { throw ThreadsMessages.MESSAGES.threadFactoryUninitialized(); } return value; }
protected ServiceController<?> getService(final OperationContext context, final ModelNode operation) throws OperationFailedException { final String name = Util.getNameFromAddress(operation.require(OP_ADDR)); ServiceController<?> controller = context.getServiceRegistry(false).getService(s...
protected ServiceController<?> getService(final OperationContext context, final ModelNode operation) throws OperationFailedException { final String name = Util.getNameFromAddress(operation.require(OP_ADDR)); ServiceController<?> controller = context.getServiceRegistry(false).getService(s...
public TimeSpec(final TimeUnit unit, final long duration) { if (unit == null) { throw ThreadsLogger.ROOT_LOGGER.nullUnit(); } this.unit = unit; this.duration = duration; }
public TimeSpec(final TimeUnit unit, final long duration) { if (unit == null) { throw ThreadsMessages.MESSAGES.nullUnit(); } this.unit = unit; this.duration = duration; }
protected void setResult(OperationContext context, final String attributeName, final Service<?> service) throws OperationFailedException { final UnboundedQueueThreadPoolService pool = (UnboundedQueueThreadPoolService) service; if(attributeName.equals(CommonAttributes.ACTIVE_COUNT)) { ...
protected void setResult(OperationContext context, final String attributeName, final Service<?> service) throws OperationFailedException { final UnboundedQueueThreadPoolService pool = (UnboundedQueueThreadPoolService) service; if(attributeName.equals(CommonAttributes.ACTIVE_COUNT)) { ...
public synchronized ManagedJBossThreadPoolExecutorService getValue() throws IllegalStateException { final ManagedJBossThreadPoolExecutorService value = this.executor; if (value == null) { throw ThreadsLogger.ROOT_LOGGER.unboundedQueueThreadPoolExecutorUninitialized(); } r...
public synchronized ManagedJBossThreadPoolExecutorService getValue() throws IllegalStateException { final ManagedJBossThreadPoolExecutorService value = this.executor; if (value == null) { throw ThreadsMessages.MESSAGES.unboundedQueueThreadPoolExecutorUninitialized(); } re...
public String toString() { return String.format("[%d]: %s", ino, name); }
public String toString() { return String.format("[%d]: %s", Integer.valueOf(ino), name); }
private Token encapsulatedTokenLexer(final Token tkn) throws IOException { // save current line number in case needed for IOE final int startLineNumber = getLineNumber(); int c; while (true) { c = in.read(); if (isEscape(c)) { tkn.content.appe...
private Token encapsulatedTokenLexer(final Token tkn) throws IOException { // save current line number in case needed for IOE final long startLineNumber = getLineNumber(); int c; while (true) { c = in.read(); if (isEscape(c)) { tkn.content.app...
private final char mapNullToDisabled(Character c) { return c == null ? DISABLED : c.charValue(); } int getLineNumber() { return in.getLineNumber(); }
private final char mapNullToDisabled(Character c) { return c == null ? DISABLED : c.charValue(); } long getLineNumber() { return in.getLineNumber(); }
private Token encapsulatedTokenLexer(final Token tkn, int c) throws IOException { // save current line final int startLineNumber = getLineNumber(); // ignore the given delimiter // assert c == delimiter; while (true) { c = in.read(); if (c == format.g...
private Token encapsulatedTokenLexer(final Token tkn, int c) throws IOException { // save current line final long startLineNumber = getLineNumber(); // ignore the given delimiter // assert c == delimiter; while (true) { c = in.read(); if (c == format....
private Token encapsulatedTokenLexer(final Token tkn) throws IOException { // save current line final int startLineNumber = getLineNumber(); // ignore the given delimiter // assert c == delimiter; int c; while (true) { c = in.read(); if (isEsc...
private Token encapsulatedTokenLexer(final Token tkn) throws IOException { // save current line final long startLineNumber = getLineNumber(); // ignore the given delimiter // assert c == delimiter; int c; while (true) { c = in.read(); if (isEs...
public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/resources/**") .addResourceLocations("classpath:org/springframework/web/servlet/resource/test/") .addResolver(new VersionResourceResolver().addContentVersionStrategy("/**")); } }
public void addResourceHandlers(ResourceHandlerRegistry registry) { registry.addResourceHandler("/resources/**") .addResourceLocations("classpath:org/springframework/web/servlet/resource/test/") .resourceChain(true).addResolver(new VersionResourceResolver().addContentVersionStrategy("/**")); } }
public void handleReplacement(int skipped, List<T> from, List<T> to);
void handleReplacement(int skipped, List<T> from, List<T> to); /* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You un...
public void registerProxySubModel(final PathElement address, final OperationHandler handler) throws IllegalArgumentException { throw new IllegalArgumentException("A proxy handler is already registered at location '" + getLocationString() + "'"); } @Override DescriptionProvider getOperationDescr...
public void registerProxySubModel(final PathElement address, final OperationHandler handler) throws IllegalArgumentException { throw new IllegalArgumentException("A proxy handler is already registered at location '" + getLocationString() + "'"); } @Override DescriptionProvider getOperationDescr...
public static String getHandlerType(OperationContext context, ModelNode elementNode) throws OperationFailedException { ModelNode classNameNode = CLASS_NAME.resolveModelAttribute(context, elementNode); ModelNode codeNode = CODE.resolveModelAttribute(context, elementNode); if (classNameNode.i...
protected String getType(OperationContext context, ModelNode model) throws OperationFailedException { return getHandlerType(context, model); } }, OperationContext.Stage.MODEL); } static String getHandlerType(OperationContext context, ModelNode elementNode) throws...
public DuplicateUserCheckState(final ConsoleWrapper theConsole,final StateValues stateValues) { this.theConsole = theConsole; this.stateValues = stateValues; if (theConsole.getConsole() == null) { throw MESSAGES.noConsoleAvailable(); } }
public DuplicateUserCheckState(final ConsoleWrapper theConsole,final StateValues stateValues) { this.theConsole = theConsole; this.stateValues = stateValues; if (stateValues.isSilent() == false && theConsole.getConsole() == null) { throw MESSAGES.noConsoleAvailable(); } ...
public ErrorState(ConsoleWrapper theConsole, String errorMessage, State nextState, StateValues stateValues) { this.errorMessage = errorMessage; this.nextState = nextState; this.stateValues = stateValues; this.theConsole = theConsole; if (theConsole.getConsole() == null) { ...
public ErrorState(ConsoleWrapper theConsole, String errorMessage, State nextState, StateValues stateValues) { this.errorMessage = errorMessage; this.nextState = nextState; this.stateValues = stateValues; this.theConsole = theConsole; if ((stateValues != null && stateValues.is...
public PromptPasswordState(ConsoleWrapper theConsole, StateValues stateValues) { this.theConsole = theConsole; this.stateValues = stateValues; if (theConsole.getConsole() == null) { throw MESSAGES.noConsoleAvailable(); } }
public PromptPasswordState(ConsoleWrapper theConsole, StateValues stateValues) { this.theConsole = theConsole; this.stateValues = stateValues; if ((stateValues != null && stateValues.isSilent() == false) && theConsole.getConsole() == null) { throw MESSAGES.noConsoleAvailable(); ...
boolean matches(Method method, Class<?> targetClass, boolean hasIntroductions); /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
boolean matches(Method method, Class<?> targetClass, boolean hasIntroductions); /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
Class<?>[] getInterfaces(); /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2....
Class<?>[] getInterfaces(); /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2....
private AspectJExpressionPointcut getPointcut(Method candidateAdviceMethod, Class<?> candidateAspectClass) { AspectJAnnotation<?> aspectJAnnotation = AbstractAspectJAdvisorFactory.findAspectJAnnotationOnMethod(candidateAdviceMethod); if (aspectJAnnotation == null) { return null; } AspectJExpressionPoint...
private AspectJExpressionPointcut getPointcut(Method candidateAdviceMethod, Class<?> candidateAspectClass) { AspectJAnnotation<?> aspectJAnnotation = AbstractAspectJAdvisorFactory.findAspectJAnnotationOnMethod(candidateAdviceMethod); if (aspectJAnnotation == null) { return null; } AspectJExpressionPoint...
public void setBeanFactory(BeanFactory beanFactory) { if (!StringUtils.hasText(this.targetBeanName)) { throw new IllegalArgumentException("Property 'targetBeanName' is required"); } if (!StringUtils.hasText(this.methodName)) { throw new IllegalArgumentException("Property 'methodName' is required"); } ...
public void setBeanFactory(BeanFactory beanFactory) { if (!StringUtils.hasText(this.targetBeanName)) { throw new IllegalArgumentException("Property 'targetBeanName' is required"); } if (!StringUtils.hasText(this.methodName)) { throw new IllegalArgumentException("Property 'methodName' is required"); } ...
Advised config, Method method, Class<?> targetClass); /* * Copyright 2002-2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apac...
Advised config, Method method, Class<?> targetClass); /* * Copyright 2002-2008 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apac...
public Object getProxy() { return getProxy(null); } @Override public Object getProxy(ClassLoader classLoader) { if (logger.isDebugEnabled()) { logger.debug("Creating CGLIB proxy: target source is " + this.advised.getTargetSource()); } try { Class<?> rootClass = this.advised.getTargetClass(); Asse...
public Object getProxy() { return getProxy(null); } @Override public Object getProxy(ClassLoader classLoader) { if (logger.isDebugEnabled()) { logger.debug("Creating CGLIB proxy: target source is " + this.advised.getTargetSource()); } try { Class<?> rootClass = this.advised.getTargetClass(); Asse...
protected AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource( Class beanClass, String beanName) { if (getBeanFactory() instanceof ConfigurableListableBeanFactory) { BeanDefinition definition = ((ConfigurableListableBeanFactory) getBeanFactory()).getBeanDefinition(beanName); if (de...
protected AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource( Class<?> beanClass, String beanName) { if (getBeanFactory() instanceof ConfigurableListableBeanFactory) { BeanDefinition definition = ((ConfigurableListableBeanFactory) getBeanFactory()).getBeanDefinition(beanName); if ...
protected final AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource( Class beanClass, String beanName) { if (beanName.startsWith(PREFIX_COMMONS_POOL)) { CommonsPoolTargetSource cpts = new CommonsPoolTargetSource(); cpts.setMaxSize(25); return cpts; } else if (beanName.startsWith(...
protected final AbstractBeanFactoryBasedTargetSource createBeanFactoryBasedTargetSource( Class<?> beanClass, String beanName) { if (beanName.startsWith(PREFIX_COMMONS_POOL)) { CommonsPoolTargetSource cpts = new CommonsPoolTargetSource(); cpts.setMaxSize(25); return cpts; } else if (beanName.startsWi...
protected String createInvocationTraceName(MethodInvocation invocation) { StringBuilder sb = new StringBuilder(getPrefix()); Method method = invocation.getMethod(); Class clazz = method.getDeclaringClass(); if (this.logTargetClassInvocation && clazz.isInstance(invocation.getThis())) { clazz = invocation.get...
protected String createInvocationTraceName(MethodInvocation invocation) { StringBuilder sb = new StringBuilder(getPrefix()); Method method = invocation.getMethod(); Class<?> clazz = method.getDeclaringClass(); if (this.logTargetClassInvocation && clazz.isInstance(invocation.getThis())) { clazz = invocation....
public void setBeanFactory(BeanFactory beanFactory) { if (!(beanFactory instanceof ConfigurableBeanFactory)) { throw new IllegalStateException("Not running in a ConfigurableBeanFactory: " + beanFactory); } ConfigurableBeanFactory cbf = (ConfigurableBeanFactory) beanFactory; this.scopedTargetSource.setBeanF...
public void setBeanFactory(BeanFactory beanFactory) { if (!(beanFactory instanceof ConfigurableBeanFactory)) { throw new IllegalStateException("Not running in a ConfigurableBeanFactory: " + beanFactory); } ConfigurableBeanFactory cbf = (ConfigurableBeanFactory) beanFactory; this.scopedTargetSource.setBeanF...
public static boolean canApply(Pointcut pc, Class<?> targetClass, boolean hasIntroductions) { Assert.notNull(pc, "Pointcut must not be null"); if (!pc.getClassFilter().matches(targetClass)) { return false; } MethodMatcher methodMatcher = pc.getMethodMatcher(); IntroductionAwareMethodMatcher introductionA...
public static boolean canApply(Pointcut pc, Class<?> targetClass, boolean hasIntroductions) { Assert.notNull(pc, "Pointcut must not be null"); if (!pc.getClassFilter().matches(targetClass)) { return false; } MethodMatcher methodMatcher = pc.getMethodMatcher(); IntroductionAwareMethodMatcher introductionA...
public boolean matches(Class clazz) { return (this.checkInherited ? (AnnotationUtils.findAnnotation(clazz, this.annotationType) != null) : clazz.isAnnotationPresent(this.annotationType)); } }
public boolean matches(Class<?> clazz) { return (this.checkInherited ? (AnnotationUtils.findAnnotation(clazz, this.annotationType) != null) : clazz.isAnnotationPresent(this.annotationType)); } }
public static Method resolveSignature(String signature, Class<?> clazz) { Assert.hasText(signature, "'signature' must not be empty"); Assert.notNull(clazz, "Class must not be null"); int firstParen = signature.indexOf("("); int lastParen = signature.indexOf(")"); if (firstParen > -1 && lastParen == -1) { ...
public static Method resolveSignature(String signature, Class<?> clazz) { Assert.hasText(signature, "'signature' must not be empty"); Assert.notNull(clazz, "Class must not be null"); int firstParen = signature.indexOf("("); int lastParen = signature.indexOf(")"); if (firstParen > -1 && lastParen == -1) { ...
Class<?> getWrappedClass(); /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2....
Class<?> getWrappedClass(); /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2....
public MutablePropertyValues(Map<?, ?> original) { // We can optimize this because it's all new: // There is no replacement of existing property values. if (original != null) { this.propertyValueList = new ArrayList<PropertyValue>(original.size()); for (Map.Entry entry : original.entrySet()) { this.pro...
public MutablePropertyValues(Map<?, ?> original) { // We can optimize this because it's all new: // There is no replacement of existing property values. if (original != null) { this.propertyValueList = new ArrayList<PropertyValue>(original.size()); for (Map.Entry<?, ?> entry : original.entrySet()) { th...
Class<?> getPropertyType(String propertyName) throws BeansException; /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
Class<?> getPropertyType(String propertyName) throws BeansException; /* * Copyright 2002-2012 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * ...
public boolean contains(Class exType) { if (exType == null) { return false; } if (exType.isInstance(this)) { return true; } for (PropertyAccessException pae : this.propertyAccessExceptions) { if (pae.contains(exType)) { return true; } } return false; } }
public boolean contains(Class<?> exType) { if (exType == null) { return false; } if (exType.isInstance(this)) { return true; } for (PropertyAccessException pae : this.propertyAccessExceptions) { if (pae.contains(exType)) { return true; } } return false; } }
public boolean contains(Class exClass) { if (super.contains(exClass)) { return true; } if (this.relatedCauses != null) { for (Throwable relatedCause : this.relatedCauses) { if (relatedCause instanceof NestedRuntimeException && ((NestedRuntimeException) relatedCause).contains(exClass)) { retu...
public boolean contains(Class<?> exClass) { if (super.contains(exClass)) { return true; } if (this.relatedCauses != null) { for (Throwable relatedCause : this.relatedCauses) { if (relatedCause instanceof NestedRuntimeException && ((NestedRuntimeException) relatedCause).contains(exClass)) { r...
public BeanIsNotAFactoryException(String name, Class actualType) { super(name, FactoryBean.class, actualType); } }
public BeanIsNotAFactoryException(String name, Class<?> actualType) { super(name, FactoryBean.class, actualType); } }
public boolean isSingleton() { return this.singleton; } @Override public void setBeanClassLoader(ClassLoader classLoader) { this.beanClassLoader = classLoader; } @Override protected Class resolveClassName(String className) throws ClassNotFoundException { return ClassUtils.forName(className, this.beanClas...
public boolean isSingleton() { return this.singleton; } @Override public void setBeanClassLoader(ClassLoader classLoader) { this.beanClassLoader = classLoader; } @Override protected Class<?> resolveClassName(String className) throws ClassNotFoundException { return ClassUtils.forName(className, this.beanC...
protected void processProperties(ConfigurableListableBeanFactory beanFactory, Properties props) throws BeansException { for (Enumeration names = props.propertyNames(); names.hasMoreElements();) { String key = (String) names.nextElement(); try { processKey(beanFactory, key, props.getProperty(key)); }...
protected void processProperties(ConfigurableListableBeanFactory beanFactory, Properties props) throws BeansException { for (Enumeration<?> names = props.propertyNames(); names.hasMoreElements();) { String key = (String) names.nextElement(); try { processKey(beanFactory, key, props.getProperty(key)); ...
public List<E> merge(Object parent) { if (!this.mergeEnabled) { throw new IllegalStateException("Not allowed to merge when the 'mergeEnabled' property is set to 'false'"); } if (parent == null) { return this; } if (!(parent instanceof List)) { throw new IllegalArgumentException("Cannot merge with ob...
public List<E> merge(Object parent) { if (!this.mergeEnabled) { throw new IllegalStateException("Not allowed to merge when the 'mergeEnabled' property is set to 'false'"); } if (parent == null) { return this; } if (!(parent instanceof List)) { throw new IllegalArgumentException("Cannot merge with ob...
public Object merge(Object parent) { if (!this.mergeEnabled) { throw new IllegalStateException("Not allowed to merge when the 'mergeEnabled' property is set to 'false'"); } if (parent == null) { return this; } if (!(parent instanceof Map)) { throw new IllegalArgumentException("Cannot merge with obje...
public Object merge(Object parent) { if (!this.mergeEnabled) { throw new IllegalStateException("Not allowed to merge when the 'mergeEnabled' property is set to 'false'"); } if (parent == null) { return this; } if (!(parent instanceof Map)) { throw new IllegalArgumentException("Cannot merge with obje...
public Set<E> merge(Object parent) { if (!this.mergeEnabled) { throw new IllegalStateException("Not allowed to merge when the 'mergeEnabled' property is set to 'false'"); } if (parent == null) { return this; } if (!(parent instanceof Set)) { throw new IllegalArgumentException("Cannot merge with obje...
public Set<E> merge(Object parent) { if (!this.mergeEnabled) { throw new IllegalStateException("Not allowed to merge when the 'mergeEnabled' property is set to 'false'"); } if (parent == null) { return this; } if (!(parent instanceof Set)) { throw new IllegalArgumentException("Cannot merge with obje...
public String getAsText() { Class clazz = (Class) getValue(); if (clazz != null) { return ClassUtils.getQualifiedName(clazz); } else { return ""; } }
public String getAsText() { Class<?> clazz = (Class<?>) getValue(); if (clazz != null) { return ClassUtils.getQualifiedName(clazz); } else { return ""; } }
public void setValue(Object value) { if (!(value instanceof Properties) && value instanceof Map) { Properties props = new Properties(); props.putAll((Map) value); super.setValue(props); } else { super.setValue(value); } }
public void setValue(Object value) { if (!(value instanceof Properties) && value instanceof Map) { Properties props = new Properties(); props.putAll((Map<?, ?>) value); super.setValue(props); } else { super.setValue(value); } }
protected Collection<Cache> loadCaches() { Collection<Cache> caches = new LinkedHashSet<Cache>(); for (String cacheName : this.cacheManager.getCacheNames()) { javax.cache.Cache jcache = this.cacheManager.getCache(cacheName); caches.add(new JCacheCache(jcache, this.allowNullValues)); } return caches; }
protected Collection<Cache> loadCaches() { Collection<Cache> caches = new LinkedHashSet<Cache>(); for (String cacheName : this.cacheManager.getCacheNames()) { javax.cache.Cache<Object, Object> jcache = this.cacheManager.getCache(cacheName); caches.add(new JCacheCache(jcache, this.allowNullValues)); } ret...
protected Object createJobInstance(TriggerFiredBundle bundle) throws Exception { // Reflectively adapting to differences between Quartz 1.x and Quartz 2.0... Method getJobDetail = bundle.getClass().getMethod("getJobDetail"); Object jobDetail = ReflectionUtils.invokeMethod(getJobDetail, bundle); Method getJobCl...
protected Object createJobInstance(TriggerFiredBundle bundle) throws Exception { // Reflectively adapting to differences between Quartz 1.x and Quartz 2.0... Method getJobDetail = bundle.getClass().getMethod("getJobDetail"); Object jobDetail = ReflectionUtils.invokeMethod(getJobDetail, bundle); Method getJobCl...
public void afterPropertiesSet() { if (this.name == null) { this.name = this.beanName; } if (this.group == null) { this.group = Scheduler.DEFAULT_GROUP; } if (this.jobDetail != null) { this.jobDataMap.put(JobDetailAwareTrigger.JOB_DETAIL_KEY, this.jobDetail); } if (this.startDelay > 0) { this...
public void afterPropertiesSet() { if (this.name == null) { this.name = this.beanName; } if (this.group == null) { this.group = Scheduler.DEFAULT_GROUP; } if (this.jobDetail != null) { this.jobDataMap.put(JobDetailAwareTrigger.JOB_DETAIL_KEY, this.jobDetail); } if (this.startDelay > 0) { this...
private JobDetail findJobDetail(Trigger trigger) { if (trigger instanceof JobDetailAwareTrigger) { return ((JobDetailAwareTrigger) trigger).getJobDetail(); } else { try { Map jobDataMap = (Map) ReflectionUtils.invokeMethod(Trigger.class.getMethod("getJobDataMap"), trigger); return (JobDetail) jobDa...
private JobDetail findJobDetail(Trigger trigger) { if (trigger instanceof JobDetailAwareTrigger) { return ((JobDetailAwareTrigger) trigger).getJobDetail(); } else { try { Map<?, ?> jobDataMap = (Map<?, ?>) ReflectionUtils.invokeMethod(Trigger.class.getMethod("getJobDataMap"), trigger); return (JobD...
public void afterPropertiesSet() throws ParseException { if (this.name == null) { this.name = this.beanName; } if (this.group == null) { this.group = Scheduler.DEFAULT_GROUP; } if (this.jobDetail != null) { this.jobDataMap.put(JobDetailAwareTrigger.JOB_DETAIL_KEY, this.jobDetail); } if (this.sta...
public void afterPropertiesSet() throws ParseException { if (this.name == null) { this.name = this.beanName; } if (this.group == null) { this.group = Scheduler.DEFAULT_GROUP; } if (this.jobDetail != null) { this.jobDataMap.put(JobDetailAwareTrigger.JOB_DETAIL_KEY, this.jobDetail); } if (this.sta...
public static JRDataSource convertReportData(Object value) throws IllegalArgumentException { if (value instanceof JRDataSource) { return (JRDataSource) value; } else if (value instanceof Collection) { return new JRBeanCollectionDataSource((Collection) value); } else if (value instanceof Object[]) { ...
public static JRDataSource convertReportData(Object value) throws IllegalArgumentException { if (value instanceof JRDataSource) { return (JRDataSource) value; } else if (value instanceof Collection) { return new JRBeanCollectionDataSource((Collection<?>) value); } else if (value instanceof Object[]) { ...
protected Object getResourceToInject(Object target, String requestingBeanName) { Service service; try { service = (Service) getResource(this, requestingBeanName); } catch (NoSuchBeanDefinitionException notFound) { // Service to be created through generated class. if (Service.class.equals(this....
protected Object getResourceToInject(Object target, String requestingBeanName) { Service service; try { service = (Service) getResource(this, requestingBeanName); } catch (NoSuchBeanDefinitionException notFound) { // Service to be created through generated class. if (Service.class.equals(this....
public Class<?>[] getSpecificTargetClasses() { return new Class[] { Environment.class }; }
public Class<?>[] getSpecificTargetClasses() { return new Class<?>[] { Environment.class }; }
public void postProcessBeforeDestruction(Object bean, String beanName) { if (bean instanceof ApplicationListener) { ApplicationEventMulticaster multicaster = this.applicationContext.getApplicationEventMulticaster(); multicaster.removeApplicationListener((ApplicationListener) bean); multicaster.removeAp...
public void postProcessBeforeDestruction(Object bean, String beanName) { if (bean instanceof ApplicationListener) { ApplicationEventMulticaster multicaster = this.applicationContext.getApplicationEventMulticaster(); multicaster.removeApplicationListener((ApplicationListener<?>) bean); multicaster.remov...
public void addTransformer(ClassFileTransformer transformer) { InvocationHandler adapter = new JBossMCTranslatorAdapter(transformer); Object adapterInstance = Proxy.newProxyInstance(this.translatorClass.getClassLoader(), new Class[] { this.translatorClass }, adapter); try { addTranslator.invoke(target, a...
public void addTransformer(ClassFileTransformer transformer) { InvocationHandler adapter = new JBossMCTranslatorAdapter(transformer); Object adapterInstance = Proxy.newProxyInstance(this.translatorClass.getClassLoader(), new Class<?>[] { this.translatorClass }, adapter); try { addTranslator.invoke(target...
public void addTransformer(ClassFileTransformer transformer) { Assert.notNull(transformer, "ClassFileTransformer must not be null"); try { InvocationHandler adapter = new WebSphereClassPreDefinePlugin(transformer); Object adapterInstance = Proxy.newProxyInstance(this.wsPreProcessorClass.getClassLoader(), ...
public void addTransformer(ClassFileTransformer transformer) { Assert.notNull(transformer, "ClassFileTransformer must not be null"); try { InvocationHandler adapter = new WebSphereClassPreDefinePlugin(transformer); Object adapterInstance = Proxy.newProxyInstance(this.wsPreProcessorClass.getClassLoader(), ...
private ModelMBeanNotificationInfo[] extractNotificationMetadata(Object mapValue) { if (mapValue instanceof ManagedNotification) { ManagedNotification mn = (ManagedNotification) mapValue; return new ModelMBeanNotificationInfo[] {JmxMetadataUtils.convertToModelMBeanNotificationInfo(mn)}; } else if (mapValue...
private ModelMBeanNotificationInfo[] extractNotificationMetadata(Object mapValue) { if (mapValue instanceof ManagedNotification) { ManagedNotification mn = (ManagedNotification) mapValue; return new ModelMBeanNotificationInfo[] {JmxMetadataUtils.convertToModelMBeanNotificationInfo(mn)}; } else if (mapValue...
protected MBeanParameterInfo[] getOperationParameters(Method method, String beanKey) { ManagedOperationParameter[] params = this.attributeSource.getManagedOperationParameters(method); if (ObjectUtils.isEmpty(params)) { return super.getOperationParameters(method, beanKey); } MBeanParameterInfo[] parameterIn...
protected MBeanParameterInfo[] getOperationParameters(Method method, String beanKey) { ManagedOperationParameter[] params = this.attributeSource.getManagedOperationParameters(method); if (ObjectUtils.isEmpty(params)) { return super.getOperationParameters(method, beanKey); } MBeanParameterInfo[] parameterIn...
public void setIgnoredMethodMappings(Properties mappings) { this.ignoredMethodMappings = new HashMap<String, Set<String>>(); for (Enumeration en = mappings.keys(); en.hasMoreElements();) { String beanKey = (String) en.nextElement(); String[] methodNames = StringUtils.commaDelimitedListToStringArray(mappings....
public void setIgnoredMethodMappings(Properties mappings) { this.ignoredMethodMappings = new HashMap<String, Set<String>>(); for (Enumeration<?> en = mappings.keys(); en.hasMoreElements();) { String beanKey = (String) en.nextElement(); String[] methodNames = StringUtils.commaDelimitedListToStringArray(mappin...
public void setMethodMappings(Properties mappings) { this.methodMappings = new HashMap<String, Set<String>>(); for (Enumeration en = mappings.keys(); en.hasMoreElements();) { String beanKey = (String) en.nextElement(); String[] methodNames = StringUtils.commaDelimitedListToStringArray(mappings.getProperty(be...
public void setMethodMappings(Properties mappings) { this.methodMappings = new HashMap<String, Set<String>>(); for (Enumeration<?> en = mappings.keys(); en.hasMoreElements();) { String beanKey = (String) en.nextElement(); String[] methodNames = StringUtils.commaDelimitedListToStringArray(mappings.getProperty...