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 TypeMethodDescriptiondefault TReturns the resource scoped to the namespace configured for this application.default TDeprecated.forNamespace(String namespace) Returns the resource scoped to the specified namespace.
-
Method Details
-
forApplicationNamespace
Returns the resource scoped to the namespace configured for this application.- Returns:
- the resource associated with the application namespace
-
forDefaultNamespace
Deprecated.useforApplicationNamespace();nullselects the application namespace, which need not be the Fluxzero default namespaceReturns the resource scoped to the namespace configured for this application.- Returns:
- the resource associated with the application namespace
-
forNamespace
Returns the resource scoped to the specified namespace. Passingnullselects the namespace configured for this application.- Parameters:
namespace- the namespace to which the returned resource is scoped, ornullfor the application namespace- Returns:
- the resource associated with the specified namespace
-
forApplicationNamespace();nullselects the application namespace, which need not be the Fluxzero default namespace