Annotation 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 ElementsModifier and TypeOptional ElementDescriptionTheInstantiatevalue that determines which instance type logic should be applied when a new instance of the object is created.TheStartupvalue that determines when the auto registration should be performed.
-
Element Details
-
startup
Startup startupTheStartupvalue that determines when the auto registration should be performed. The default value isStartup.ENABLE, meaning auto registration is performed after the addon has been enabled.- Returns:
- The
Startupvalue indicating when to enable auto-registration.
- Default:
- ENABLE
-
instantiate
Instantiate instantiateTheInstantiatevalue that determines which instance type logic should be applied when a new instance of the object is created. The default values isInstantiate.SAME, meaning auto registration will use the same object rather than creating new ones every time.- Returns:
- The
Instantiatevalue indicating which instantiate logic should be used. - Since:
- 3.3.2-SNAPSHOT
- Default:
- SAME
-