@ -236,6 +236,10 @@ public class GroovyBeanDefinitionReader extends AbstractBeanDefinitionReader imp
@@ -236,6 +236,10 @@ public class GroovyBeanDefinitionReader extends AbstractBeanDefinitionReader imp
logger.trace("Loading Groovy bean definitions from "+encodedResource);
}
Closurebeans=newClosure(this){
@Override
publicObjectcall(Object[]args){
@ -265,7 +269,12 @@ public class GroovyBeanDefinitionReader extends AbstractBeanDefinitionReader imp
@@ -265,7 +269,12 @@ public class GroovyBeanDefinitionReader extends AbstractBeanDefinitionReader imp
@ -459,8 +459,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
@@ -459,8 +459,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
logger.debug("Creating instance of bean '"+beanName+"'");
if(logger.isTraceEnabled()){
logger.trace("Creating instance of bean '"+beanName+"'");
}
RootBeanDefinitionmbdToUse=mbd;
@ -496,8 +496,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
@@ -496,8 +496,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
logger.debug("Finished creating instance of bean '"+beanName+"'");
if(logger.isTraceEnabled()){
logger.trace("Finished creating instance of bean '"+beanName+"'");
}
returnbeanInstance;
}
@ -562,8 +562,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
@@ -562,8 +562,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
@ -1417,8 +1417,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
@@ -1417,8 +1417,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
Objectbean=getBean(propertyName);
pvs.add(propertyName,bean);
registerDependentBean(propertyName,beanName);
if(logger.isDebugEnabled()){
logger.debug("Added autowiring by name from bean name '"+beanName+
if(logger.isTraceEnabled()){
logger.trace("Added autowiring by name from bean name '"+beanName+
"' via property '"+propertyName+"' to bean named '"+propertyName+"'");
}
}
@ -1468,8 +1468,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
@@ -1468,8 +1468,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
logger.debug("Autowiring by type from bean name '"+beanName+"' via property '"+
if(logger.isTraceEnabled()){
logger.trace("Autowiring by type from bean name '"+beanName+"' via property '"+
propertyName+"' to bean named '"+autowiredBeanName+"'");
}
}
@ -1784,8 +1784,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
@@ -1784,8 +1784,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
logger.debug("Invoking afterPropertiesSet() on bean with name '"+beanName+"'");
if(logger.isTraceEnabled()){
logger.trace("Invoking afterPropertiesSet() on bean with name '"+beanName+"'");
}
if(System.getSecurityManager()!=null){
try{
@ -1835,8 +1835,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
@@ -1835,8 +1835,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
initMethodName+"' on bean with name '"+beanName+"'");
}
else{
if(logger.isDebugEnabled()){
logger.debug("No default init method named '"+initMethodName+
if(logger.isTraceEnabled()){
logger.trace("No default init method named '"+initMethodName+
"' found on bean with name '"+beanName+"'");
}
// Ignore non-existent default lifecycle methods.
@ -1844,8 +1844,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
@@ -1844,8 +1844,8 @@ public abstract class AbstractAutowireCapableBeanFactory extends AbstractBeanFac
}
}
if(logger.isDebugEnabled()){
logger.debug("Invoking init method '"+initMethodName+"' on bean with name '"+beanName+"'");
if(logger.isTraceEnabled()){
logger.trace("Invoking init method '"+initMethodName+"' on bean with name '"+beanName+"'");
@ -182,11 +183,11 @@ public abstract class AbstractBeanDefinitionReader implements EnvironmentCapable
@@ -182,11 +183,11 @@ public abstract class AbstractBeanDefinitionReader implements EnvironmentCapable
Assert.notNull(resources,"Resource array must not be null");
intcounter=0;
intcount=0;
for(Resourceresource:resources){
counter+=loadBeanDefinitions(resource);
count+=loadBeanDefinitions(resource);
}
returncounter;
returncount;
}
@Override
@ -213,23 +214,21 @@ public abstract class AbstractBeanDefinitionReader implements EnvironmentCapable
@@ -213,23 +214,21 @@ public abstract class AbstractBeanDefinitionReader implements EnvironmentCapable
ResourceLoaderresourceLoader=getResourceLoader();
if(resourceLoader==null){
thrownewBeanDefinitionStoreException(
"Cannot import bean definitions from location ["+location+"]: no ResourceLoader available");
"Cannot load bean definitions from location ["+location+"]: no ResourceLoader available");
logger.debug("Loaded "+loadCount+" bean definitions from location pattern ["+location+"]");
if(logger.isTraceEnabled()){
logger.trace("Loaded "+count+" bean definitions from location pattern ["+location+"]");
}
returnloadCount;
returncount;
}
catch(IOExceptionex){
thrownewBeanDefinitionStoreException(
@ -239,25 +238,25 @@ public abstract class AbstractBeanDefinitionReader implements EnvironmentCapable
@@ -239,25 +238,25 @@ public abstract class AbstractBeanDefinitionReader implements EnvironmentCapable
else{
// Can only load single resources by absolute URL.
@ -503,8 +503,8 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@@ -503,8 +503,8 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
throwex;
}
// Probably a class name with a placeholder: let's ignore it for type matching purposes.
if(logger.isDebugEnabled()){
logger.debug("Ignoring bean class loading failure for bean '"+beanName+"'",ex);
if(logger.isTraceEnabled()){
logger.trace("Ignoring bean class loading failure for bean '"+beanName+"'",ex);
}
onSuppressedException(ex);
}
@ -513,8 +513,8 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@@ -513,8 +513,8 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
throwex;
}
// Probably some metadata with a placeholder: let's ignore it for type matching purposes.
if(logger.isDebugEnabled()){
logger.debug("Ignoring unresolvable metadata in bean definition '"+beanName+"'",ex);
if(logger.isTraceEnabled()){
logger.trace("Ignoring unresolvable metadata in bean definition '"+beanName+"'",ex);
}
onSuppressedException(ex);
}
@ -541,8 +541,8 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@@ -541,8 +541,8 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
}
catch(NoSuchBeanDefinitionExceptionex){
// Shouldn't happen - probably a result of circular reference resolution...
if(logger.isDebugEnabled()){
logger.debug("Failed to check manually registered singleton with name '"+beanName+"'",ex);
if(logger.isTraceEnabled()){
logger.trace("Failed to check manually registered singleton with name '"+beanName+"'",ex);
}
}
}
@ -586,8 +586,8 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@@ -586,8 +586,8 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
logger.debug("Ignoring match to currently created bean '"+exBeanName+"': "+
if(logger.isTraceEnabled()){
logger.trace("Ignoring match to currently created bean '"+exBeanName+"': "+
ex.getMessage());
}
onSuppressedException(ex);
@ -790,8 +790,8 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@@ -790,8 +790,8 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
@ -489,8 +489,8 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
@@ -489,8 +489,8 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
}
publicvoiddestroySingletons(){
if(logger.isDebugEnabled()){
logger.debug("Destroying singletons in "+this);
if(logger.isTraceEnabled()){
logger.trace("Destroying singletons in "+this);
}
synchronized(this.singletonObjects){
this.singletonsCurrentlyInDestruction=true;
@ -557,8 +557,8 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
@@ -557,8 +557,8 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
logger.debug("Retrieved dependent beans for bean '"+beanName+"': "+dependencies);
if(logger.isTraceEnabled()){
logger.trace("Retrieved dependent beans for bean '"+beanName+"': "+dependencies);
}
for(StringdependentBeanName:dependencies){
destroySingleton(dependentBeanName);
@ -571,7 +571,9 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
@@ -571,7 +571,9 @@ public class DefaultSingletonBeanRegistry extends SimpleAliasRegistry implements
bean.destroy();
}
catch(Throwableex){
logger.warn("Destroy method on bean with name '"+beanName+"' threw an exception",ex);
if(logger.isInfoEnabled()){
logger.info("Destroy method on bean with name '"+beanName+"' threw an exception",ex);
@ -247,6 +247,10 @@ public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader
@@ -247,6 +247,10 @@ public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader
@ -257,7 +261,12 @@ public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader
@@ -257,7 +261,12 @@ public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader
logger.debug("Loaded "+count+" bean definitions from "+encodedResource);
}
returncount;
}
catch(IOExceptionex){
thrownewBeanDefinitionStoreException("Could not parse properties from "+encodedResource.getResource(),ex);
@ -368,8 +377,8 @@ public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader
@@ -368,8 +377,8 @@ public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader
@ -468,8 +477,8 @@ public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader
@@ -468,8 +477,8 @@ public class PropertiesBeanDefinitionReader extends AbstractBeanDefinitionReader
}
}
if(logger.isDebugEnabled()){
logger.debug("Registering bean definition for bean name '"+beanName+"' with "+pvs);
if(logger.isTraceEnabled()){
logger.trace("Registering bean definition for bean name '"+beanName+"' with "+pvs);
}
// Just use default parent if we're not dealing with the parent itself,
@ -93,9 +93,7 @@ public class DefaultBeanDefinitionDocumentReader implements BeanDefinitionDocume
@@ -93,9 +93,7 @@ public class DefaultBeanDefinitionDocumentReader implements BeanDefinitionDocume
@ -234,8 +232,8 @@ public class DefaultBeanDefinitionDocumentReader implements BeanDefinitionDocume
@@ -234,8 +232,8 @@ public class DefaultBeanDefinitionDocumentReader implements BeanDefinitionDocume
logger.debug("Imported "+importCount+" bean definitions from URL location ["+location+"]");
if(logger.isTraceEnabled()){
logger.trace("Imported "+importCount+" bean definitions from URL location ["+location+"]");
}
}
catch(BeanDefinitionStoreExceptionex){
@ -257,16 +255,16 @@ public class DefaultBeanDefinitionDocumentReader implements BeanDefinitionDocume
@@ -257,16 +255,16 @@ public class DefaultBeanDefinitionDocumentReader implements BeanDefinitionDocume
@ -70,8 +70,8 @@ public class DefaultDocumentLoader implements DocumentLoader {
@@ -70,8 +70,8 @@ public class DefaultDocumentLoader implements DocumentLoader {
@ -156,11 +156,14 @@ public class DefaultNamespaceHandlerResolver implements NamespaceHandlerResolver
@@ -156,11 +156,14 @@ public class DefaultNamespaceHandlerResolver implements NamespaceHandlerResolver
synchronized(this){
handlerMappings=this.handlerMappings;
if(handlerMappings==null){
if(logger.isTraceEnabled()){
logger.trace("Loading NamespaceHandler mappings from ["+this.handlerMappingsLocation+"]");
@ -119,14 +119,14 @@ public class PluggableSchemaResolver implements EntityResolver {
@@ -119,14 +119,14 @@ public class PluggableSchemaResolver implements EntityResolver {
logger.debug("Found XML schema ["+systemId+"] in classpath: "+resourceLocation);
if(logger.isTraceEnabled()){
logger.trace("Found XML schema ["+systemId+"] in classpath: "+resourceLocation);
}
returnsource;
}
catch(FileNotFoundExceptionex){
if(logger.isDebugEnabled()){
logger.debug("Couldn't find XML schema ["+systemId+"]: "+resource,ex);
logger.debug("Could not find XML schema ["+systemId+"]: "+resource,ex);
}
}
}
@ -143,14 +143,14 @@ public class PluggableSchemaResolver implements EntityResolver {
@@ -143,14 +143,14 @@ public class PluggableSchemaResolver implements EntityResolver {
synchronized(this){
schemaMappings=this.schemaMappings;
if(schemaMappings==null){
if(logger.isDebugEnabled()){
logger.debug("Loading schema mappings from ["+this.schemaMappingsLocation+"]");
if(logger.isTraceEnabled()){
logger.trace("Loading schema mappings from ["+this.schemaMappingsLocation+"]");
@ -105,7 +105,8 @@ public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader {
@@ -105,7 +105,8 @@ public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader {
@ -312,8 +313,8 @@ public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader {
@@ -312,8 +313,8 @@ public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader {
@ -386,9 +387,14 @@ public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader {
@@ -386,9 +387,14 @@ public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader {
logger.debug("Loaded "+count+" bean definitions from "+resource);
}
returncount;
}
catch(BeanDefinitionStoreExceptionex){
throwex;
@ -429,7 +435,6 @@ public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader {
@@ -429,7 +435,6 @@ public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader {
@ -515,7 +520,7 @@ public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader {
@@ -515,7 +520,7 @@ public class XmlBeanDefinitionReader extends AbstractBeanDefinitionReader {
@ -209,7 +209,7 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@@ -209,7 +209,7 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
logger.debug("JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning");
logger.trace("JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning");
}
catch(ClassNotFoundExceptionex){
// JSR-250 1.1 API (as included in Java EE 6) not available - simply skip.
@ -217,7 +217,7 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@@ -217,7 +217,7 @@ public class ClassPathScanningCandidateComponentProvider implements EnvironmentC
@ -401,8 +401,8 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
@@ -401,8 +401,8 @@ public class ConfigurationClassPostProcessor implements BeanDefinitionRegistryPo
@ -92,8 +92,8 @@ public class PropertySourcesPropertyResolver extends AbstractPropertyResolver {
@@ -92,8 +92,8 @@ public class PropertySourcesPropertyResolver extends AbstractPropertyResolver {
}
}
}
if(logger.isDebugEnabled()){
logger.debug("Could not find key '"+key+"' in any property source");
if(logger.isTraceEnabled()){
logger.trace("Could not find key '"+key+"' in any property source");