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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HasLocalHandlerscreateForNamespace(String namespace) registerHandler(Object target, HandlerFilter handlerFilter) Registers a handler object, including only those methods that match the providedHandlerFilter.Methods inherited from class AbstractNamespaced
close, forNamespaceMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HasLocalHandlers
hasLocalHandlers, registerHandler, setSelfHandlerFilterMethods inherited from interface Namespaced
forApplicationNamespace, forDefaultNamespace
-
Constructor Details
-
LocalDocumentHandlerRegistry
public LocalDocumentHandlerRegistry()
-
-
Method Details
-
createForNamespace
- Specified by:
createForNamespacein classAbstractNamespaced<HasLocalHandlers>
-
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
-