public class HookManager extends Object
| Constructor and Description |
|---|
HookManager(HookResolver r,
com.fasterxml.jackson.databind.node.JsonNodeFactory factory)
Construct hooks with the given hook resolver
|
| Modifier and Type | Method and Description |
|---|---|
void |
callQueuedHooks()
Calls all queued hooks, and then clears the queued hooks.
|
void |
clear()
Clears all queued hooks
|
void |
queueHooks(CRUDOperationContext ctx)
Queues hooks for the operation represented by the operation context.
|
void |
queueMediatorHooks(CRUDOperationContext ctx)
Queues mediator hooks for the operation represented by the operation
context.
|
public HookManager(HookResolver r, com.fasterxml.jackson.databind.node.JsonNodeFactory factory)
public void clear()
public void queueHooks(CRUDOperationContext ctx)
ctx - Operation context
This will create copies of all the documents that has no errors in the
context, and save them for later hook execution.public void queueMediatorHooks(CRUDOperationContext ctx)
ctx - Operation context
This operation will only queue mediator hooks. This will create copies of
all the documents that has no errors in the context, and save them for
later hook execution.public void callQueuedHooks()
Copyright © 2015. All rights reserved.