initial commit

This commit is contained in:
00asdf
2023-03-29 03:15:42 +02:00
commit 3353b4deb7
13 changed files with 622 additions and 0 deletions
@@ -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();
}