Class LocalDocumentHandlerRegistry
java.lang.Object
io.fluxzero.sdk.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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HasLocalHandlers
hasLocalHandlers, registerHandler, setSelfHandlerFilter
-
Constructor Details
-
LocalDocumentHandlerRegistry
public LocalDocumentHandlerRegistry()
-
-
Method Details
-
registerHandler
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
-