@ThreadSafe public abstract class AbstractValueFactories extends Object implements ValueFactories
ValueFactories that implements all the methods other than the get*Factory()
methods. Subclasses can simply implement these methods and inherit the iterator(), getValueFactory(Object)
and getValueFactory(PropertyType) method implementations.| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractValueFactories.ValueFactoryIterator |
| Constructor and Description |
|---|
AbstractValueFactories() |
| Modifier and Type | Method and Description |
|---|---|
ValueFactory<?> |
getValueFactory(Object prototype)
Get the value factory that is best able to create values with the most natural type given by the supplied value.
|
ValueFactory<?> |
getValueFactory(PropertyType type)
Get the value factory that creates values of the supplied
type. |
Iterator<ValueFactory<?>> |
iterator()
This implementation always iterates over the instances return by the
get*Factory() methods. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBinaryFactory, getBooleanFactory, getDateFactory, getDecimalFactory, getDoubleFactory, getLongFactory, getNameFactory, getObjectFactory, getPathFactory, getReferenceFactory, getSimpleReferenceFactory, getStringFactory, getTypeSystem, getUriFactory, getUuidFactory, getWeakReferenceFactorypublic Iterator<ValueFactory<?>> iterator()
This implementation always iterates over the instances return by the get*Factory() methods.
iterator in interface Iterable<ValueFactory<?>>public ValueFactory<?> getValueFactory(PropertyType type)
ValueFactoriestype.getValueFactory in interface ValueFactoriestype - the type for the valuespublic ValueFactory<?> getValueFactory(Object prototype)
ValueFactoriesgetValueFactory in interface ValueFactoriesprototype - the value that should be used to determine the best value factoryCopyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.