Class LocalDocumentHandlerRegistry

java.lang.Object
io.fluxcapacitor.javaclient.persisting.search.client.LocalDocumentHandlerRegistry
All Implemented Interfaces:
HasLocalHandlers

public class LocalDocumentHandlerRegistry extends Object 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

    • registerHandler

      public Registration registerHandler(Object target, 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