org.springframework.context.annotation
Class LoadTimeWeavingConfiguration
java.lang.Object
org.springframework.context.annotation.LoadTimeWeavingConfiguration
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, ImportAware
@Configuration
public class LoadTimeWeavingConfiguration
- extends java.lang.Object
- implements ImportAware, org.springframework.beans.factory.BeanClassLoaderAware
@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.
- Since:
- 3.1
- Author:
- Chris Beams
- See Also:
LoadTimeWeavingConfigurer,
ConfigurableApplicationContext.LOAD_TIME_WEAVER_BEAN_NAME
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoadTimeWeavingConfiguration
public LoadTimeWeavingConfiguration()
setImportMetadata
public void setImportMetadata(org.springframework.core.type.AnnotationMetadata importMetadata)
- Description copied from interface:
ImportAware
- Set the annotation metadata of the importing @
Configuration class.
- Specified by:
setImportMetadata in interface ImportAware
setBeanClassLoader
public void setBeanClassLoader(java.lang.ClassLoader beanClassLoader)
- Specified by:
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAware
loadTimeWeaver
@Bean(name="loadTimeWeaver")
@Role(value=2)
public LoadTimeWeaver loadTimeWeaver()