com.gargoylesoftware.base.objectstore
public class DispatchingObjectStore extends ObjectStore
Version: $Revision: 1.5 $
Field Summary | |
---|---|
Map | dispatchMap_ |
Map | resourceFactoryMap_ |
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
|
Parameters: 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()
Parameters: 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()
Parameters: command The command to dispatch
Returns: The result of the command after the other store has processed it
Parameters: command The command for which we are finding the store
Returns: The object store
Throws: ObjectStoreCommandNotSupportedException If we cannot find a store for the specified command ObjectStoreException if an error occurs when finding or creating an object store