Annotation Interface Depends
Declares a dependency for an
Addon.
The Depends annotation is used to specify that an addon depends on another addon for its functionality.
It indicates the required addon by referencing its class type. This annotation can be applied multiple times
to declare multiple dependencies.
- Since:
- 3.1.0-SNAPSHOT
- See Also:
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanSpecifies whether this dependency should be treated as optional or not.
-
Element Details
-
value
Specifies the class of the required addon.This class must extend
Addonand represents the addon that the annotated addon depends on. The dependency will be resolved during the addon initialization process.- Returns:
- The class of the required addon.
-
-
-
soft
boolean softSpecifies whether this dependency should be treated as optional or not.truemeans that this dependency is optional,falsemeans the opposite. The default value isfalse.- Returns:
trueif this dependency is optional,falseotherwise.- Since:
- 3.3.4-SNAPSHOT
- Default:
- false
-