de.smartics.properties.api.core.annotations
Annotation Type PropertyKeyName


@Documented
@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface PropertyKeyName

Defines a name of a property key.

If not specified, the name defaults to the name of the beans property. The fully qualified key, used to identify the property, is composed of the property set name and this property key name.

 
   
   

Example

@PropertySet("myprops")
public interface MyProperties {
...
  @PropertyKeyName("key")
  String name();
}

The name of the fully qualified property in the example is myprops.key instead of the default myprops.name.


Required Element Summary
 String value
          The name of the property key.
 

Element Detail

value

public abstract String value
The name of the property key.



Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.