Annotation Type Lazy


@Retention(SOURCE) @Target({METHOD,TYPE}) public @interface Lazy
Marks a Singleton, Component or Factory method beans to be initialised lazily.

When annotating a Factory as @Lazy it means that the factory itself is not lazy but all beans that it provides will have lazy initialisation.