Class LocalDocumentHandlerRegistry
java.lang.Object
io.fluxcapacitor.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 TypeMethodDescriptionregisterHandler
(Object target, 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, wait
Methods inherited from interface io.fluxcapacitor.javaclient.tracking.handling.HasLocalHandlers
hasLocalHandlers, registerHandler, setSelfHandlerFilter
-
Constructor Details
-
LocalDocumentHandlerRegistry
public LocalDocumentHandlerRegistry()
-
-
Method Details
-
registerHandler
Description copied from interface:HasLocalHandlers
Registers 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:
registerHandler
in interfaceHasLocalHandlers
- Parameters:
target
- the handler object containing annotated methodshandlerFilter
- the filter used to determine which methods should be registered- Returns:
- a
Registration
which can be used to unregister the handlers
-