@Component public class SystemConfigurationHandler extends Object implements ChangeHook
Constructor and Description |
---|
SystemConfigurationHandler() |
Modifier and Type | Method and Description |
---|---|
void |
init() |
<O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> |
invoke(ModelContext<O> context,
Task task,
OperationResult parentResult)
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.
|
void |
postInit(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType> systemConfiguration,
OperationResult parentResult) |
public static final String HOOK_URI
@PostConstruct public void init()
public void postInit(PrismObject<com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType> systemConfiguration, OperationResult parentResult)
public <O extends com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType> HookOperationMode invoke(ModelContext<O> context, Task task, OperationResult parentResult)
ChangeHook
invoke
in interface ChangeHook
public void invokeOnException(ModelContext context, Throwable throwable, Task task, OperationResult result)
ChangeHook
invokeOnException
in interface ChangeHook
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.