be.objectify.led.factory.object
Class AbstractObjectFactory<T>

java.lang.Object
  extended by be.objectify.led.factory.object.AbstractObjectFactory<T>
All Implemented Interfaces:
ObjectFactory<T>
Direct Known Subclasses:
AbstractNumberFactory, BooleanFactory, CharacterFactory, EnumFactory, ListFactory, MapFactory, SetFactory, StringFactory

public abstract class AbstractObjectFactory<T>
extends Object
implements ObjectFactory<T>

Author:
Steve Chaloner

Constructor Summary
AbstractObjectFactory()
           
 
Method Summary
 void validate(String propertyName, String propertyValue, ValidationFunction... validationFunctions)
          Default implementation of validate() does nothing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface be.objectify.led.ObjectFactory
createObject, getBoundClass
 

Constructor Detail

AbstractObjectFactory

public AbstractObjectFactory()
Method Detail

validate

public void validate(String propertyName,
                     String propertyValue,
                     ValidationFunction... validationFunctions)
              throws ValidationException
Default implementation of validate() does nothing.

Specified by:
validate in interface ObjectFactory<T>
Parameters:
propertyName - the name of the property
propertyValue - the value from the @{link PropertyContext}
validationFunctions - functions to validate the property value
Throws:
ValidationException - if the property value isn't valid


Copyright © 2010 Objectify. All Rights Reserved.