|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.persistence.metadata.ObjectTypeRegistry
Provides a general purpose object type adapter registry, which is aware of the type hierarchy
MetadataProviderRegistry| Constructor Summary | |
ObjectTypeRegistry()
|
|
| Method Summary | |
Object |
findAdapter(ObjectType type)
Retrieves the best matching adapter for a object type. |
Object |
findAdapter(String type)
Retrieves the best matching adapter for a object type. |
Object |
getAdapter(ObjectType type)
Retrieves the adapter registered against this type, or null if none is registered. |
Object |
getAdapter(String type)
Retrieves the adapter registered against this type, or null if none is registered. |
void |
registerAdapter(ObjectType type,
Object adapter)
Registers an adapter for a type |
void |
registerAdapter(String type,
Object adapter)
Registers an adapter for a type |
void |
unregisterAdapter(ObjectType type)
Unregisters an adapter for a type |
void |
unregisterAdapter(String type)
Unregisters an adapter for a type |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ObjectTypeRegistry()
| Method Detail |
public void registerAdapter(String type,
Object adapter)
type - the object type nameadapter - the object type adapterpublic void unregisterAdapter(String type)
type - the object type name
public void registerAdapter(ObjectType type,
Object adapter)
type - the object typeadapter - the object type adapterpublic void unregisterAdapter(ObjectType type)
type - the object typepublic Object getAdapter(String type)
type - the object type name
public Object getAdapter(ObjectType type)
type - the object type
public Object findAdapter(String type)
type - the object type name
public Object findAdapter(ObjectType type)
type - the object type
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||