summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/bukkit/plugin/java/annotation/dependency/SoftDependency.java
blob: a542a09785555f32f9d8803b0ff40f20b9d33dec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
package org.bukkit.plugin.java.annotation.dependency;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
 * Represents a soft (optional) dependency for this plugin.
 * If this dependency is not present, the plugin will still load.
 * <br>
 * The <b>name</b> attribute of the plugin is required in order to specify the target. <br>
 * Circular soft-dependencies are loaded arbitrarily.
 */

@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Repeatable(SoftDependsOn.class)
public @interface SoftDependency {
    /**
     * A plugin that is required in order for this plugin to have full functionality.
     */
    String value();
}