Annotation Interface Manager
Annotation to mark a class as a Manager for dependency injection
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanWhether the manager should be eagerly loaded upon registration.
If true, the manager will be instantiated immediately when registered.
If false, the manager will be instantiated lazily when first requested.
Default is false (lazy loading).The scope of the manager instance.
ManagerScope.SINGLETON - A single instance is shared across the application.
ManagerScope.PROTOTYPE - A new instance is created each time it is requested.
Default is ManagerScope.SINGLETON.
-
Element Details
-
eagerlyLoad
boolean eagerlyLoadWhether the manager should be eagerly loaded upon registration.
If true, the manager will be instantiated immediately when registered.
If false, the manager will be instantiated lazily when first requested.
Default is false (lazy loading).- Default:
false
-
scope
ManagerScope scopeThe scope of the manager instance.
ManagerScope.SINGLETON - A single instance is shared across the application.
ManagerScope.PROTOTYPE - A new instance is created each time it is requested.
Default is ManagerScope.SINGLETON.- Default:
SINGLETON
-