|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface OutBeanProperty
Declares that the bean property that corresponds to the annotated getter will be used as an output bean. The name of the bean will be the name of the property, and the bean class will be the property type.
When an element is processed, the output bean instance will be
outjected from element through the getter as invididual output values that
correspond to the bean properties. An OutbeanOutjectionException
exception will be thrown if the outjection failed.
OutBean| Optional Element Summary | |
|---|---|
String |
group
The validation group that has been declared by the bean class. |
String |
name
The expected name of the property. |
String |
prefix
The prefix that will be prepended to each property name of the output bean when corresponding output names are automatically declared. |
public abstract String name
This hasn't got any influence on the actual name that is being used for the property, but is used instead to ensure that the property name is the same as the one specified here. This is typically used to create a single point of declaration for the property name that can be referenced elsewhere and that is ensured to be correct.
public abstract String prefix
public abstract String group
This requires the bean class to implement the ValidatedConstrained
interface, either directly, or by extending MetaData, or by using
automated meta data merging.
The group will indicate which bean properties should only be taken into account. Any properties outside the group will not be created as outputs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||