@Target(value=METHOD) @Retention(value=RUNTIME) @Inherited @Documented public @interface ConfigurationEntry
get and is stripped if present).
The annotation may define optional aliases, if the configuration entry may be known under multiple names.
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
alias
Declares configuration entry aliases that will be searched
if no configuration entry with the primary name is found.
|
Class<?> |
collectionItemType
If the type of configuration entry is a collection, it is necessary to determine the legal type
of the collection's items.
|
String |
name
Declares explicit primary name of the configuration entry.
|
public abstract String name
If the value is empty string or the annotation is not present, the primary name is derived from the method name with optional getter prefix intelligently stripped (prefix "get" is removed only if followed by capital letter), as shown in the following examples:
getSimpleProperty() is transformed to simplePropertygetterOfInt() is not transformed, i.e. the name is getterOfIntpublic abstract String[] alias
public abstract Class<?> collectionItemType
Copyright © 2015 Boleslav Bobcik - Auderis. All rights reserved.