java.beans
Annotation Type ConstructorProperties


@Documented
@Retention(value=RUNTIME)
@Target(value=CONSTRUCTOR)
public @interface ConstructorProperties

An annotation used to associate the parameters of a constructor with the accessor methods that later provide access to these values. For example, the parameters of the constructor Person(String name, int age) may be linked to the bean's two accessors, getName() and getAge() using @ConstructorProperties({"name","age"}).

Since:
1.6

Required Element Summary
 String[] value
          Contains the name of the accessor methods associated with each constructor parameter.
 

Element Detail

value

public abstract String[] value
Contains the name of the accessor methods associated with each constructor parameter.

Returns:
the accessor method names corresponding to the constructor parameters.