Annotation Interface Manager


@Target(TYPE) @Retention(RUNTIME) public @interface Manager
Annotation to mark a class as a Manager for dependency injection
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Whether 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 eagerlyLoad
      Whether 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

      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.
      Default:
      SINGLETON