org.loom.binding.factories
Class ImplementationFactoriesRepository
java.lang.Object
org.loom.binding.factories.ImplementationFactoriesRepository
@Singleton
public class ImplementationFactoriesRepository
- extends java.lang.Object
An ordered list of implementation repositories: stops when one registered
repository has a valid Factory for a property.
If none can, returns a DefaultImplementationFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImplementationFactoriesRepository
public ImplementationFactoriesRepository()
getImplementationFactory
public ImplementationFactory<?> getImplementationFactory(PropertyWrapper wrapper)
- Returns:
- the implementation factory for this property, null if none is specified and
it could not be guessed
getImplementationFactory
public ImplementationFactory<?> getImplementationFactory(java.lang.Class<?> propertyClass)
- Returns:
- the default ImplementationFactory for the given class, null if it is not recognized
setListImplementationFactory
public void setListImplementationFactory(ImplementationFactory<?> listImplementationFactory)
setMapImplementationFactory
public void setMapImplementationFactory(ImplementationFactory<?> mapImplementationFactory)
setSetImplementationFactory
public void setSetImplementationFactory(ImplementationFactory<?> setImplementationFactory)