public interface ChangeHook
Modifier and Type | Method and Description |
---|---|
<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
invoke(ModelContext<O> context,
Task task,
OperationResult result)
Generic method to be implemented by the hook.
|
void |
invokeOnException(ModelContext context,
Throwable throwable,
Task task,
OperationResult result)
This method is invoked by the clockwork when an exception occurs.
|
<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> HookOperationMode invoke(ModelContext<O> context, Task task, OperationResult result)
void invokeOnException(ModelContext context, Throwable throwable, Task task, OperationResult result)
context
- actual model context at the point of processing the exceptionthrowable
- the exception itselftask
- actual task, in context of which the operation was carried outresult
- actual operation result - the handler should create a subresult here for its operation
This method has no return value, as it is not expected that the processing would continue in
the background. (This could change in the future.)Copyright © 2016 evolveum. All rights reserved.