|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value=METHOD) @Retention(value=RUNTIME) public @interface InstanceClass
Annotation describing the property class to instantiate if the current value of a property is null but we want to create one.
The class passed as parameter must be instantiable and have a zero-argument constructor. This class is useful if the return type of the property is an interface and you want to declare a default implementation.
Required Element Summary | |
---|---|
Class<?> |
instanceClass
The class to use. |
Element Detail |
---|
public abstract Class<?> instanceClass
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |