|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Retention(value=RUNTIME) @Target(value=FIELD) @Experimental public @interface ConfigurationKey
Indicates that a field name is a key of the Configuration
data.
The annotation describes the usage of the configuration parameter.
The ConfigurationKey
annotation is an convention. Only
fields
with
public
, static
and final
modifiers
String
should be annotated. Note, that the compiler couldn't check this
conventions. Other tools like apt
implementation should do the
checking job.
Optional Element Summary | |
---|---|
String |
defaultValue
The default value of the configuration parameter. |
String |
description
The description of the configuration parameter. |
ConfigurationKey.Type |
type
The type of the configuration parameter. |
Class<? extends Predicate<String>> |
validator
A predicate to valid the configuration value. |
public abstract String description
public abstract String defaultValue
public abstract ConfigurationKey.Type type
public abstract Class<? extends Predicate<String>> validator
predicate
to valid the configuration value. default
returns always true
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |