Package org.jvnet.hk2.config
Annotation Type Units
-
@Retention(RUNTIME) @Target(METHOD) public @interface Units
Units annotation to be used on @Configured interfaces. Units are strings because they are an unbounded set, but do try to use the provided values for consistency.- Author:
- Lloyd Chambers
-
-
Field Summary
Fields Modifier and Type Fields Description static StringBYTESstatic StringCOUNTvalue is an arbitrary countstatic StringDAYSstatic StringGIGABYTESstatic StringHOURSstatic StringKILOBYTESstatic StringMEGABYTESstatic StringMILLISECONDSstatic StringMINUTESstatic StringSECONDS
-
-
-
Field Detail
-
MILLISECONDS
static final String MILLISECONDS
-
-
-
SECONDS
static final String SECONDS
-
-
-
MINUTES
static final String MINUTES
-
-
-
HOURS
static final String HOURS
-
-
-
DAYS
static final String DAYS
-
-
-
BYTES
static final String BYTES
-
-
-
KILOBYTES
static final String KILOBYTES
-
-
-
MEGABYTES
static final String MEGABYTES
-
-
-
GIGABYTES
static final String GIGABYTES
-
-
-
COUNT
static final String COUNT
value is an arbitrary count
-
-
Element Detail
-
units
@DescriptorKey("units") String units
Units should always be lower-case and appropriate for human viewing. Suggested units:- "seconds", "milliseconds", "minutes", "hours", "days"
- "count"
- "bytes", "kilobytes", "megabytes", "gigabytes"
-
-