@Configuration @Role(value=2) public class LoadTimeWeavingConfiguration extends Object implements ImportAware, 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.
LoadTimeWeavingConfigurer
,
ConfigurableApplicationContext.LOAD_TIME_WEAVER_BEAN_NAME
Constructor and Description |
---|
LoadTimeWeavingConfiguration() |
Modifier and Type | Method and Description |
---|---|
LoadTimeWeaver |
loadTimeWeaver() |
void |
setBeanClassLoader(ClassLoader beanClassLoader)
Callback that supplies the bean
class loader to
a bean instance. |
void |
setImportMetadata(AnnotationMetadata importMetadata)
Set the annotation metadata of the importing @
Configuration class. |
void |
setLoadTimeWeavingConfigurer(LoadTimeWeavingConfigurer ltwConfigurer) |
public void setImportMetadata(AnnotationMetadata importMetadata)
ImportAware
Configuration
class.setImportMetadata
in interface ImportAware
@Autowired(required=false) public void setLoadTimeWeavingConfigurer(LoadTimeWeavingConfigurer ltwConfigurer)
public void setBeanClassLoader(ClassLoader beanClassLoader)
BeanClassLoaderAware
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.
setBeanClassLoader
in interface BeanClassLoaderAware
beanClassLoader
- the owning class loader@Bean(name="loadTimeWeaver") @Role(value=2) public LoadTimeWeaver loadTimeWeaver()