/
Dependency.java
43 lines (38 loc) · 907 Bytes
/
Dependency.java
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package net.ME1312.Galaxi.Plugin;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Plugin Dependency Annotation
*
* @see Plugin
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.ANNOTATION_TYPE)
public @interface Dependency {
/**
* Name of the Dependency
*
* @return Dependency Name
*/
String name();
/**
* Minimum required version of the Dependency
*
* @return Minimum required version
*/
String minVersion() default "";
/**
* Maximum allowed version of the Dependency
*
* @return Maximum allowed version
*/
String maxVersion() default "";
/**
* Whether the Dependency is required
*
* @return Required Dependency Status
*/
boolean required() default true;
}