|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.gargoylesoftware.base.objectstore.ObjectStore com.gargoylesoftware.base.objectstore.DispatchingObjectStore
An object store that just dispatches commands to other object stores
Constructor Summary | |
protected |
DispatchingObjectStore(Map nameToResourceFactoryMap)
Create an instance. |
|
DispatchingObjectStore(Map commandToStoreMap,
Map nameToResourceFactoryMap)
Create an instance |
Method Summary | |
protected Object |
executeImpl(ObjectStoreCommand command)
Perform the dispatching. |
protected ObjectStore |
findStore(ObjectStoreCommand command)
Find the ObjectStore for the specified command |
Methods inherited from class com.gargoylesoftware.base.objectstore.ObjectStore |
assertNotNull, execute, getResource, getResourceManager, handleError, handleException, releaseResource, setResourceFactoryMap, setResourceManager |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected DispatchingObjectStore(Map nameToResourceFactoryMap)
nameToResourceFactoryMap
- keys are names, values are the
resource factory objects that are represented by the name. This map
will be passed into any newly created ObjectStore's via the method
setResourceFactoryMap()public DispatchingObjectStore(Map commandToStoreMap, Map nameToResourceFactoryMap)
commandToStoreMap
- A map containing command to store mappings. Keys
and values must be class objects.nameToResourceFactoryMap
- keys are names, values are the
resource factory objects that are represented by the name. This map
will be passed into any newly created ObjectStore's via the method
setResourceFactoryMap()Method Detail |
protected Object executeImpl(ObjectStoreCommand command)
executeImpl
in class ObjectStore
command
- The command to dispatch
ObjectStore.execute(ObjectStoreCommand)
protected ObjectStore findStore(ObjectStoreCommand command) throws ObjectStoreCommandNotSupportedException, ObjectStoreException
command
- The command for which we are finding the store
ObjectStoreCommandNotSupportedException
- If we cannot find a
store for the specified command
ObjectStoreException
- if an error occurs when finding or
creating an object store
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |