This example defines the attribute number-of-instances. To enable the attribute take properties in the form ${property-name} as values, the data type of this attribute is String.
import org.jvnet.hk2.config.Attribute; ... @Attribute public String getNumberOfInstances(); public void setNumberOfInstances(String instances) throws PropertyVetoException; ...