Annotation Interface Dependency
Represets a plugin dependency.
If you want to use a dependency in your plugin apply it like this:
@Plugin(name = "FooPlugin", version = "1.0.0-SNAPSHOT", dependencies =
{ @Dependency(name = "BarPlugin") }))
@Plugin(name = "FooPlugin", version = "1.0.0-SNAPSHOT", dependencies =
{ @Dependency(name = "Bar1Plugin"), @Dependency(name = "Bar2Plugin") }))
Or with type:
@Plugin(name = "FooPlugin", version = "1.0.0-SNAPSHOT", dependencies =
{ @Dependency(name = "BarPlugin", type = DependencyType.SOFTDEPEND) }))-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
name
String nameThe name of the plugin to depend on.- Returns:
- The plugin name to depend on
- See Also:
-
-
-
type
DependencyType typeThe type of the dependency. A dependency with typeDependencyType.DEPENDmeans that it is required for the current plugin to load. A dependency with typeDependencyType.SOFTDEPENDmeans that the current plugin needs it for fill functionality. A dependency with typeDependencyType.LOADBEFOREmeans that the dependency needs your plugin to be loaded before it loads.- Returns:
- The type of the dependency.
- See Also:
- Default:
- DEPEND
-