|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ObjectFactory<T>
Object factories are used to convert string property values into objects of an specific type.
| Method Summary | |
|---|---|
T |
createObject(String propertyName,
String propertyValue)
Creates an object based on propertyValue. |
Class<T> |
getBoundClass()
Gets the class type this factory produces objects for. |
void |
validate(String propertyName,
String propertyValue,
ValidationFunction... validationFunctions)
Validations the value for the field. |
| Method Detail |
|---|
T createObject(String propertyName,
String propertyValue)
propertyValue - the value of the property
Class<T> getBoundClass()
void validate(String propertyName,
String propertyValue,
ValidationFunction... validationFunctions)
propertyName - the name of the propertypropertyValue - the value from the @{link PropertyContext}validationFunctions - functions to validate the property value
ValidationException - if the property value isn't valid
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||