public class PropertyCollectionFactory extends Object
PropertyCollection| Modifier and Type | Method and Description |
|---|---|
static List<Property<?>> |
initialize(List<Property<?>> properties,
PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler validationHandler)
Initialize an list of Property's.
|
static List<Property<?>> |
initialize(Property<?>[] properties,
PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler validationHandler)
Initialize an array of Property's.
|
static List<Property<?>> |
initializeFieldCollection(Object instance,
Class<?> clazz,
PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler validationHandler,
PropertyFieldFilter propertyFieldFilter)
Initialize all fields in class of type Property and parses the accept method of "propertyFieldFilter".
|
static void |
initializeIO(PropertyIO io,
org.apache.commons.logging.Log logger,
PropertyValidationHandler validationHandler)
This will validate a PropertyIO.
|
public static void initializeIO(PropertyIO io, org.apache.commons.logging.Log logger, PropertyValidationHandler validationHandler)
PropertyIO.validate() and using the logger log its failure or success.io - the PropertyIOlogger - a loggerpublic static List<Property<?>> initialize(Property<?>[] properties, PropertyIO io, org.apache.commons.logging.Log logger, PropertyValidationHandler validationHandler)
properties - the array of Property's.io - the io to initialize the Property's with.logger - the loggerinitialize(List, PropertyIO, Log, PropertyValidationHandler)public static List<Property<?>> initialize(List<Property<?>> properties, PropertyIO io, org.apache.commons.logging.Log logger, PropertyValidationHandler validationHandler)
properties - the list of Property's.io - the PropertyIO.logger - the loggerpublic static List<Property<?>> initializeFieldCollection(Object instance, Class<?> clazz, PropertyIO io, org.apache.commons.logging.Log logger, PropertyValidationHandler validationHandler, PropertyFieldFilter propertyFieldFilter)
clazz - the class where to look for fields.io - the PropertyIOlogger - the logger.validationHandler - the validationHandler used when validating the individual Properties.propertyFieldFilter - the filter which select the fields from classes and interfaces above which should be initialized