Package com.evolveum.midpoint.repo.api
Interface SystemConfigurationChangeDispatcher
-
- All Known Implementing Classes:
SystemConfigurationChangeDispatcherImpl
public interface SystemConfigurationChangeDispatcherCentral point of dispatching notifications about changes to the system configuration object.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispatch(boolean ignoreVersion, boolean allowNotFound, OperationResult result)Dispatches information on system configuration object change.voidregisterListener(SystemConfigurationChangeListener listener)Registers a listener that will be updated on system configuration object changes.voidunregisterListener(SystemConfigurationChangeListener listener)Unregisters a listener.
-
-
-
Method Detail
-
dispatch
void dispatch(boolean ignoreVersion, boolean allowNotFound, OperationResult result) throws SchemaExceptionDispatches information on system configuration object change. Basically this directly pushes information to lower layers (prism, schema, repo, etc), and calls registered listeners that originate in upper layers.- Parameters:
ignoreVersion- If false, the information is dispatched unconditionally. If true, we dispatch the notification only if the system configuration version was really changed. This is to easily support sources that "ping" sysconfig object in regular intervals, e.g. the cluster manager thread.allowNotFound- If true, we take non-existence of sysconfig object more easily. To be used e.g. on system init or during tests execution.- Throws:
SchemaException
-
registerListener
void registerListener(SystemConfigurationChangeListener listener)
Registers a listener that will be updated on system configuration object changes.
-
unregisterListener
void unregisterListener(SystemConfigurationChangeListener listener)
Unregisters a listener.
-
-