Annotation Interface Dependency


@Retention(RUNTIME) @Target({}) public @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
    Modifier and Type
    Required Element
    Description
    The name of the plugin to depend on.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The type of the dependency.