Module io.fluxzero.javaclient
Class LocalDocumentHandlerRegistry
java.lang.Object
io.fluxzero.javaclient.persisting.search.client.LocalDocumentHandlerRegistry
- All Implemented Interfaces:
HasLocalHandlers
A handler registry implementation intended for local testing and development that registers handlers for document
updates in a specific collection.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.fluxzero.common.RegistrationregisterHandler(Object target, io.fluxzero.common.handling.HandlerFilter handlerFilter) Registers a handler object, including only those methods that match the providedHandlerFilter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxzero.javaclient.tracking.handling.HasLocalHandlers
hasLocalHandlers, registerHandler, setSelfHandlerFilter
-
Constructor Details
-
LocalDocumentHandlerRegistry
public LocalDocumentHandlerRegistry()
-
-
Method Details
-
registerHandler
public io.fluxzero.common.Registration registerHandler(Object target, io.fluxzero.common.handling.HandlerFilter handlerFilter) Description copied from interface:HasLocalHandlersRegisters a handler object, including only those methods that match the providedHandlerFilter.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:
registerHandlerin interfaceHasLocalHandlers- Parameters:
target- the handler object containing annotated methodshandlerFilter- the filter used to determine which methods should be registered- Returns:
- a
Registrationwhich can be used to unregister the handlers
-