Class AbstractNamespaced<T>

java.lang.Object
io.fluxzero.sdk.common.AbstractNamespaced<T>
All Implemented Interfaces:
Namespaced<T>
Direct Known Subclasses:
AbstractClient, BatchingHandlerRepository, CachingAggregateRepository, DefaultAggregateRepository, DefaultCommandGateway, DefaultDocumentStore, DefaultErrorGateway, DefaultEventGateway, DefaultEventStore, DefaultGenericGateway, DefaultHandlerRepository, DefaultKeyValueStore, DefaultMessageScheduler, DefaultMetricsGateway, DefaultQueryGateway, DefaultRequestHandler, DefaultResultGateway, DefaultSnapshotStore, DefaultWebRequestGateway, LocalDocumentHandlerRegistry, ProxyRequestHandler, WebResponseGateway

public abstract class AbstractNamespaced<T> extends Object implements Namespaced<T>
  • Constructor Details

    • AbstractNamespaced

      public AbstractNamespaced()
  • Method Details

    • createForNamespace

      protected abstract T createForNamespace(String namespace)
    • forNamespace

      public T forNamespace(String namespace)
      Description copied from interface: Namespaced
      Returns the resource scoped to the specified namespace. Passing null selects the namespace configured for this application.
      Specified by:
      forNamespace in interface Namespaced<T>
      Parameters:
      namespace - the namespace to which the returned resource is scoped, or null for the application namespace
      Returns:
      the resource associated with the specified namespace
    • close

      protected void close()