be.objectify.led
Class PropertySetter

java.lang.Object
  extended by be.objectify.led.PropertySetter

public class PropertySetter
extends Object

Author:
Steve Chaloner

Constructor Summary
PropertySetter()
          Initialises a new instance with a default PropertyContext and FactoryResolver.
PropertySetter(FactoryResolver factoryResolver, PropertyContext propertyContext)
          Initialises a new instance with the given property context and a object factory registry, and a default type factory registry.
PropertySetter(PropertyContext propertyContext)
          Initialses a new instance with the given PropertyContext and default FactoryResolver.
 
Method Summary
 PropertySetterConfiguration getConfiguration()
           
 void process(Class target, ValidationFunction... validationFunctions)
          Processes any Property annotations in the given class.
 void process(Object target, ValidationFunction... validationFunctions)
          Processes any Property annotations in the given object, including static members.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertySetter

public PropertySetter()
Initialises a new instance with a default PropertyContext and FactoryResolver.


PropertySetter

public PropertySetter(PropertyContext propertyContext)
Initialses a new instance with the given PropertyContext and default FactoryResolver.

Parameters:
propertyContext - the property context. Must not be null

PropertySetter

public PropertySetter(FactoryResolver factoryResolver,
                      PropertyContext propertyContext)
Initialises a new instance with the given property context and a object factory registry, and a default type factory registry.

Parameters:
factoryResolver - the object factory resolver. Must not be null
propertyContext - the property context. Must not be null
Method Detail

process

public void process(Class target,
                    ValidationFunction... validationFunctions)
Processes any Property annotations in the given class. This will not affect any instance members.

Parameters:
target - the class to check
validationFunctions - validation checks

process

public void process(Object target,
                    ValidationFunction... validationFunctions)
Processes any Property annotations in the given object, including static members.

Parameters:
target - the object to check
validationFunctions - validation checks

getConfiguration

public PropertySetterConfiguration getConfiguration()


Copyright © 2010 Objectify. All Rights Reserved.