From a023de85aa08c8f2b8b2441c6b14064eabee2775 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Sat, 2 Apr 2016 15:07:33 -0400 Subject: Began work on general configuration stuff. I'll leave this sit for a while, and come back to it after some thought --- .../bjc/utils/configuration/Configuration.java | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 BJC-Utils2/src/main/java/bjc/utils/configuration/Configuration.java (limited to 'BJC-Utils2/src/main/java/bjc/utils/configuration/Configuration.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/configuration/Configuration.java b/BJC-Utils2/src/main/java/bjc/utils/configuration/Configuration.java new file mode 100644 index 0000000..7944c44 --- /dev/null +++ b/BJC-Utils2/src/main/java/bjc/utils/configuration/Configuration.java @@ -0,0 +1,26 @@ +package bjc.utils.configuration; + +import java.lang.annotation.Documented; +import java.lang.annotation.ElementType; +import java.lang.annotation.Retention; +import java.lang.annotation.RetentionPolicy; +import java.lang.annotation.Target; + +/** + * Annotation that marks a class as having a config file bound to it + * + * For this annotation to be valid to apply to the class, the class must + * meet two qualities + * + * 1. Have a public no-args constructor + * + * 2. Have one or more fields annoted with a {@link FieldMarker} annotation + * + * @author ben + * + */ +@Retention(RetentionPolicy.RUNTIME) +@Target(ElementType.TYPE) +@Documented +public @interface Configuration { +} \ No newline at end of file -- cgit v1.2.3