org.jvnet.hk2.config
Annotation Type Units
@Retention(value=RUNTIME)
@Target(value=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
Required Element Summary |
String |
units
Units should always be lower-case and appropriate for human viewing. |
units
@DescriptorKey(value="units")
public abstract 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"
Copyright © 2013 Oracle Corporation. All Rights Reserved.