spring-framework / org.springframework.context.annotation.aspectj / EnableSpringConfigured

EnableSpringConfigured

@Target([AnnotationTarget.CLASS, AnnotationTarget.FILE]) @Import(SpringConfiguredConfiguration) class EnableSpringConfigured

Signals the current application context to apply dependency injection to non-managed classes that are instantiated outside of the Spring bean factory (typically classes annotated with the org.springframework.beans.factory.annotation.Configurable annotation).

Similar to functionality found in Spring's <context:spring-configured> XML element. Often used in conjunction with org.springframework.context.annotation.EnableLoadTimeWeaving.

Author
Chris Beams

Since
3.1

See Also
org.springframework.context.annotation.EnableLoadTimeWeaving

Constructors

<init>

EnableSpringConfigured()

Signals the current application context to apply dependency injection to non-managed classes that are instantiated outside of the Spring bean factory (typically classes annotated with the org.springframework.beans.factory.annotation.Configurable annotation).

Similar to functionality found in Spring's <context:spring-configured> XML element. Often used in conjunction with org.springframework.context.annotation.EnableLoadTimeWeaving.