Annotation Type Lazy
Marks a class or factory method bean to be initialized lazily.
When annotating a Factory class as @Lazy, the factory itself is not lazy but
all beans that it provides will have lazy initialization.
If the annotated class or factory method is an interface or has an additional no-args constructor, a generated proxy bean will be wired for ultimate laziness.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumControl whether a compile-time proxy is generated to support lazy initialization. -
Optional Element Summary
Optional Elements
-
Element Details
-
value
-