spring-framework / org.springframework.context.annotation / LoadTimeWeavingConfigurer

LoadTimeWeavingConfigurer

interface LoadTimeWeavingConfigurer

Interface to be implemented by org.springframework.context.annotation.Configuration classes annotated with EnableLoadTimeWeaving that wish to customize the LoadTimeWeaver instance to be used.

See org.springframework.scheduling.annotation.EnableAsync for usage examples and information on how a default LoadTimeWeaver is selected when this interface is not used.

Author
Chris Beams

Since
3.1

See Also
LoadTimeWeavingConfigurationEnableLoadTimeWeaving

Functions

getLoadTimeWeaver

abstract fun getLoadTimeWeaver(): LoadTimeWeaver

Create, configure and return the LoadTimeWeaver instance to be used. Note that it is unnecessary to annotate this method with @Bean, because the object returned will automatically be registered as a bean by LoadTimeWeavingConfiguration#loadTimeWeaver()