Annotation Interface AutoRegister


@Documented @Retention(RUNTIME) @Target(TYPE) public @interface AutoRegister
The AutoRegister is an annotation used to mark classes for automatic registration during the startup process. This annotation can be used in combination with a Startup value that determines when the auto registration should occur.

The default value of the annotation is Startup.ENABLE, meaning auto registration is performed after the addon has been enabled.

Since:
3.2.0-SNAPSHOT
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The Instantiate value that determines which instance type logic should be applied when a new instance of the object is created.
    The Startup value that determines when the auto registration should be performed.
  • Element Details

    • startup

      Startup startup
      The Startup value that determines when the auto registration should be performed. The default value is Startup.ENABLE, meaning auto registration is performed after the addon has been enabled.
      Returns:
      The Startup value indicating when to enable auto-registration.
      Default:
      ENABLE
    • instantiate

      Instantiate instantiate
      The Instantiate value that determines which instance type logic should be applied when a new instance of the object is created. The default values is Instantiate.SAME, meaning auto registration will use the same object rather than creating new ones every time.
      Returns:
      The Instantiate value indicating which instantiate logic should be used.
      Since:
      3.3.2-SNAPSHOT
      Default:
      SAME