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 String
BYTES
static String
COUNT
value is an arbitrary countstatic String
DAYS
static String
GIGABYTES
static String
HOURS
static String
KILOBYTES
static String
MEGABYTES
static String
MILLISECONDS
static String
MINUTES
static String
SECONDS
-
-
-
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"
-
-