Top Description Fields Constructors Methods
org.springframework.context.annotation

public Class LoadTimeWeavingConfiguration

extends Object
implements ImportAware, BeanClassLoaderAware
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.Aware, org.springframework.context.annotation.ImportAware
Annotations
@Configuration
proxyBeanMethods:false
@Role:2
Imports
org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.annotation.Autowired, org.springframework.beans.factory.config.BeanDefinition, org.springframework.context.ConfigurableApplicationContext, org.springframework.context.annotation.EnableLoadTimeWeaving.AspectJWeaving, org.springframework.context.weaving.AspectJWeavingEnabler, .DefaultContextLoadTimeWeaver, org.springframework.core.annotation.AnnotationAttributes, org.springframework.core.type.AnnotationMetadata, org.springframework.instrument.classloading.LoadTimeWeaver, org.springframework.lang.Nullable, org.springframework.util.Assert

@Configuration class that registers a LoadTimeWeaver bean.

This configuration class is automatically imported when using the EnableLoadTimeWeaving annotation. See @EnableLoadTimeWeaving javadoc for complete usage details.

Author
Chris Beams
Since
3.1
See Also
LoadTimeWeavingConfigurer, ConfigurableApplicationContext#LOAD_TIME_WEAVER_BEAN_NAME

Field Summary

Modifier and TypeField and Description
private ClassLoader
private AnnotationAttributes
private LoadTimeWeavingConfigurer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public LoadTimeWeaver
public void
setBeanClassLoader(ClassLoader
the owning class loader
beanClassLoader
)

Implements org.springframework.beans.factory.BeanClassLoaderAware.setBeanClassLoader.

Callback that supplies the bean class loader to a bean instance.
public void
setImportMetadata(AnnotationMetadata importMetadata)

Implements org.springframework.context.annotation.ImportAware.setImportMetadata.

Set the annotation metadata of the importing @Configuration class.
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beanClassLoaderback to summary
private ClassLoader beanClassLoader
Annotations
@Nullable
enableLTWback to summary
private AnnotationAttributes enableLTW
Annotations
@Nullable
ltwConfigurerback to summary
private LoadTimeWeavingConfigurer ltwConfigurer
Annotations
@Nullable

Constructor Detail

LoadTimeWeavingConfigurationback to summary
public LoadTimeWeavingConfiguration()

Method Detail

loadTimeWeaverback to summary
public LoadTimeWeaver loadTimeWeaver()
Annotations
@Bean
name:loadTimeWeaver
@Role:2
setBeanClassLoaderback to summary
public void setBeanClassLoader(ClassLoader beanClassLoader)

Implements org.springframework.beans.factory.BeanClassLoaderAware.setBeanClassLoader.

Doc from org.springframework.beans.factory.BeanClassLoaderAware.setBeanClassLoader.

Callback that supplies the bean class loader to a bean instance.

Invoked after the population of normal bean properties but before an initialization callback such as InitializingBean's InitializingBean#afterPropertiesSet() method or a custom init-method.

Parameters
beanClassLoader:ClassLoader

the owning class loader

Annotations
@Override
setImportMetadataback to summary
public void setImportMetadata(AnnotationMetadata importMetadata)

Implements org.springframework.context.annotation.ImportAware.setImportMetadata.

Doc from org.springframework.context.annotation.ImportAware.setImportMetadata.

Set the annotation metadata of the importing @Configuration class.

Annotations
@Override
setLoadTimeWeavingConfigurerback to summary
public void setLoadTimeWeavingConfigurer(LoadTimeWeavingConfigurer ltwConfigurer)
Annotations
@Autowired
required:false