Class DefaultQueryGateway

java.lang.Object
io.fluxzero.sdk.publishing.DefaultQueryGateway
All Implemented Interfaces:
Namespaced<QueryGateway>, QueryGateway, HasLocalHandlers

public class DefaultQueryGateway extends Object implements QueryGateway
Default implementation of the QueryGateway interface.

This class delegates all operations defined in the QueryGateway interface to an underlying GenericGateway instance.

See Also:
  • Constructor Details

    • DefaultQueryGateway

      public DefaultQueryGateway()
  • Method Details

    • forDefaultNamespace

      public DefaultQueryGateway forDefaultNamespace()
      Description copied from interface: Namespaced
      Returns the resource scoped to the default namespace.
      Specified by:
      forDefaultNamespace in interface Namespaced<QueryGateway>
      Returns:
      the resource which is associated with the default namespace
    • forNamespace

      public DefaultQueryGateway forNamespace(String namespace)
      Description copied from interface: Namespaced
      Creates and returns the resource scoped to the specified namespace.
      Specified by:
      forNamespace in interface Namespaced<QueryGateway>
      Parameters:
      namespace - the namespace to which the returned resource is scoped
      Returns:
      the resource associated with the specified namespace