public class DispatchingObjectStore extends ObjectStore
Modifier | Constructor and Description |
---|---|
protected |
DispatchingObjectStore(Map nameToResourceFactoryMap)
Create an instance.
|
|
DispatchingObjectStore(Map commandToStoreMap,
Map nameToResourceFactoryMap)
Create an instance
|
Modifier and Type | Method and Description |
---|---|
protected Object |
executeImpl(ObjectStoreCommand command)
Perform the dispatching.
|
protected ObjectStore |
findStore(ObjectStoreCommand command)
Find the ObjectStore for the specified command
|
assertNotNull, execute, getResource, getResourceManager, handleError, handleException, releaseResource, setResourceFactoryMap, setResourceManager
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()protected Object executeImpl(ObjectStoreCommand command)
executeImpl
in class ObjectStore
command
- The command to dispatchObjectStore.execute(ObjectStoreCommand)
protected ObjectStore findStore(ObjectStoreCommand command) throws ObjectStoreCommandNotSupportedException, ObjectStoreException
command
- The command for which we are finding the storeObjectStoreCommandNotSupportedException
- If we cannot find a
store for the specified commandObjectStoreException
- if an error occurs when finding or
creating an object storeCopyright © 1998–2014 Gargoyle Software Inc.. All rights reserved.