/[projects]/WebConfig/src/dk/thoerup/webconfig/ConfigVariable.java
ViewVC logotype

Contents of /WebConfig/src/dk/thoerup/webconfig/ConfigVariable.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1346 - (show annotations) (download)
Wed Apr 20 17:16:28 2011 UTC (13 years, 1 month ago) by torben
File size: 640 byte(s)
Make it possible to differentiate between variable name and config-file property name
1 package dk.thoerup.webconfig;
2
3 import java.lang.annotation.ElementType;
4 import java.lang.annotation.Retention;
5 import java.lang.annotation.RetentionPolicy;
6 import java.lang.annotation.Target;
7
8
9 @Retention(RetentionPolicy.RUNTIME)
10 @Target(ElementType.FIELD)
11 public @interface ConfigVariable {
12 String description() default "";
13
14 //controls whether this is writable from ConfigServlet web UI
15 boolean readonly() default false;
16
17 //Property name - if the field has another name in the config source
18 //eg. the annotated variable is called cacheTimeout but in the config file it's called cache_timeout
19 String propertyname() default "";
20 }

  ViewVC Help
Powered by ViewVC 1.1.20