Class DispatchingObjectStore

java.lang.Object
com.gargoylesoftware.base.objectstore.ObjectStore
com.gargoylesoftware.base.objectstore.DispatchingObjectStore

public class DispatchingObjectStore extends ObjectStore
An object store that just dispatches commands to other object stores
Version:
$Revision: 1.5 $
  • Field Details

    • dispatchMap_

      private final Map dispatchMap_
    • resourceFactoryMap_

      private final Map resourceFactoryMap_
  • Constructor Details

    • DispatchingObjectStore

      protected DispatchingObjectStore(Map nameToResourceFactoryMap)
      Create an instance. If you use this constructor then you must override findStoreClass() since the dispatchMap has not been populated
      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()
    • DispatchingObjectStore

      public DispatchingObjectStore(Map commandToStoreMap, Map nameToResourceFactoryMap)
      Create an instance
      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()
  • Method Details