org.loom.binding.factories
Class ImplementationFactoriesRepository

java.lang.Object
  extended by 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


Constructor Summary
ImplementationFactoriesRepository()
           
 
Method Summary
 ImplementationFactory<?> getImplementationFactory(java.lang.Class<?> propertyClass)
           
 ImplementationFactory<?> getImplementationFactory(PropertyWrapper wrapper)
           
 void setListImplementationFactory(ImplementationFactory<?> listImplementationFactory)
           
 void setMapImplementationFactory(ImplementationFactory<?> mapImplementationFactory)
           
 void setSetImplementationFactory(ImplementationFactory<?> setImplementationFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplementationFactoriesRepository

public ImplementationFactoriesRepository()
Method Detail

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)