|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.objectify.led.ObjectFactoryRegistry
public class ObjectFactoryRegistry
Registry of object factories for creating objects of the correct type based on the field.
| Constructor Summary | |
|---|---|
ObjectFactoryRegistry()
Initialises a new instance of this class by registering the default object factories. |
|
| Method Summary | |
|---|---|
ObjectFactory |
getFactory(Class clazz)
Gets the object factory for the given class. |
void |
register(List<ObjectFactory> objectFactories)
Registers the object factories with the registry. |
void |
register(ObjectFactory... objectFactories)
Registers the object factories with the registry. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ObjectFactoryRegistry()
| Method Detail |
|---|
public void register(ObjectFactory... objectFactories)
objectFactories - the object factories. None of the factories can be null.public void register(List<ObjectFactory> objectFactories)
objectFactories - the object factories to register. Must not be null; none of contentspublic ObjectFactory getFactory(Class clazz)
clazz - the class of the required object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||