Class LocalDocumentHandlerRegistry

java.lang.Object
io.fluxzero.sdk.common.AbstractNamespaced<HasLocalHandlers>
io.fluxzero.sdk.persisting.search.client.LocalDocumentHandlerRegistry
All Implemented Interfaces:
Namespaced<HasLocalHandlers>, HasLocalHandlers

public class LocalDocumentHandlerRegistry extends AbstractNamespaced<HasLocalHandlers> implements HasLocalHandlers
A handler registry implementation intended for local testing and development that registers handlers for document updates in a specific collection.
See Also:
  • Constructor Details

    • LocalDocumentHandlerRegistry

      public LocalDocumentHandlerRegistry()
  • Method Details

    • createForNamespace

      protected HasLocalHandlers createForNamespace(String namespace)
      Specified by:
      createForNamespace in class AbstractNamespaced<HasLocalHandlers>
    • registerHandler

      public io.fluxzero.common.Registration registerHandler(Object target, io.fluxzero.common.handling.HandlerFilter handlerFilter)
      Description copied from interface: HasLocalHandlers
      Registers a handler object, including only those methods that match the provided HandlerFilter.

      This method offers fine-grained control over which handler methods are registered, based on custom logic applied to method annotations and/or signatures.

      Specified by:
      registerHandler in interface HasLocalHandlers
      Parameters:
      target - the handler object containing annotated methods
      handlerFilter - the filter used to determine which methods should be registered
      Returns:
      a Registration which can be used to unregister the handlers