/
Plugin.java
70 lines (61 loc) · 1.32 KB
/
Plugin.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
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 Class Annotation<br>
* Classes annotated with this will be loaded as plugins when found
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Plugin {
/**
* The Name of this Plugin
*
* @return Plugin Name
*/
String name();
/**
* The Version of this Plugin
*
* @return Plugin Version
*/
String version();
/**
* The Build Signature of this Plugin
*
* @return Build Signature
*/
String signature() default "";
/**
* The Authors of this Plugin
*
* @return Authors List
*/
String[] authors();
/**
* The Description of this Plugin
*
* @return Plugin Description
*/
String description() default "";
/**
* The Authors' Website
*
* @return Authors' Website
*/
String website() default "";
/**
* Load Before Plugins List
*
* @return Load Before List
*/
String[] loadBefore() default {};
/**
* Dependencies List
*
* @return Dependencies List
*/
Dependency[] dependencies() default {};
}