package dk.thoerup.webconfig; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface ConfigVariable { String description() default ""; //controls whether this is writable from ConfigServlet web UI boolean readonly() default false; //Property name - if the field has another name in the config source //eg. the annotated variable is called cacheTimeout but in the config file it's called cache_timeout String propertyname() default ""; // Controls whether the value should be hidden from the web config page boolean hideValue() default false; }