initial commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package dev.asdf00.confidibus.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Config {
|
||||
/**
|
||||
* path of the configuration file
|
||||
*/
|
||||
String path();
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package dev.asdf00.confidibus.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target(ElementType.TYPE)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Section {
|
||||
String title();
|
||||
|
||||
String comment() default "";
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package dev.asdf00.confidibus.annotations;
|
||||
|
||||
import java.lang.annotation.ElementType;
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
@Target(ElementType.FIELD)
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
public @interface Value {
|
||||
String comment() default "";
|
||||
|
||||
/**
|
||||
* name of the value in the configuration file, if not specified, the name of the field will be written to the file
|
||||
*/
|
||||
String name() default "";
|
||||
|
||||
String _default();
|
||||
}
|
||||
Reference in New Issue
Block a user