Interface Namespaced<T>

All Known Subinterfaces:
AggregateRepository, Client, CommandGateway, DocumentStore, ErrorGateway, EventGateway, EventStore, GenericGateway, HandlerRepository, KeyValueStore, MessageScheduler, MetricsGateway, QueryGateway, RequestHandler, ResultGateway, SnapshotStore, WebRequestGateway
All Known Implementing Classes:
AbstractClient, AbstractNamespaced, BatchingHandlerRepository, CachingAggregateRepository, DefaultAggregateRepository, DefaultCommandGateway, DefaultDocumentStore, DefaultErrorGateway, DefaultEventGateway, DefaultEventStore, DefaultGenericGateway, DefaultHandlerRepository, DefaultKeyValueStore, DefaultMessageScheduler, DefaultMetricsGateway, DefaultQueryGateway, DefaultRequestHandler, DefaultResultGateway, DefaultSnapshotStore, DefaultWebRequestGateway, LocalClient, LocalDocumentHandlerRegistry, NoOpSnapshotStore, ProxyRequestHandler, WebResponseGateway, WebSocketClient

public interface Namespaced<T>
  • Method Summary

    Modifier and Type
    Method
    Description
    default T
    Returns the resource scoped to the namespace configured for this application.
    default T
    Deprecated.
    use forApplicationNamespace(); null selects the application namespace, which need not be the Fluxzero default namespace
    forNamespace(String namespace)
    Returns the resource scoped to the specified namespace.
  • Method Details

    • forApplicationNamespace

      default T forApplicationNamespace()
      Returns the resource scoped to the namespace configured for this application.
      Returns:
      the resource associated with the application namespace
    • forDefaultNamespace

      @Deprecated(forRemoval=false) default T forDefaultNamespace()
      Deprecated.
      use forApplicationNamespace(); null selects the application namespace, which need not be the Fluxzero default namespace
      Returns the resource scoped to the namespace configured for this application.
      Returns:
      the resource associated with the application namespace
    • forNamespace

      T forNamespace(String namespace)
      Returns the resource scoped to the specified namespace. Passing null selects the namespace configured for this application.
      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