Class SystemConfigurationChangeDispatcherImpl
- java.lang.Object
-
- com.evolveum.midpoint.repo.sqlbase.SystemConfigurationChangeDispatcherImpl
-
- All Implemented Interfaces:
SystemConfigurationChangeDispatcher
public class SystemConfigurationChangeDispatcherImpl extends Object implements SystemConfigurationChangeDispatcher
Dispatches "system configuration changed" events to relevant objects.
-
-
Constructor Summary
Constructors Constructor Description SystemConfigurationChangeDispatcherImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispatch(boolean ignoreVersion, boolean allowNotFound, OperationResult result)
Dispatches information on system configuration object change.void
registerListener(SystemConfigurationChangeListener listener)
Registers a listener that will be updated on system configuration object changes.void
unregisterListener(SystemConfigurationChangeListener listener)
Unregisters a listener.
-
-
-
Method Detail
-
dispatch
public void dispatch(boolean ignoreVersion, boolean allowNotFound, OperationResult result) throws SchemaException
Description copied from interface:SystemConfigurationChangeDispatcher
Dispatches 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.- Specified by:
dispatch
in interfaceSystemConfigurationChangeDispatcher
- 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
public void registerListener(SystemConfigurationChangeListener listener)
Description copied from interface:SystemConfigurationChangeDispatcher
Registers a listener that will be updated on system configuration object changes.- Specified by:
registerListener
in interfaceSystemConfigurationChangeDispatcher
-
unregisterListener
public void unregisterListener(SystemConfigurationChangeListener listener)
Description copied from interface:SystemConfigurationChangeDispatcher
Unregisters a listener.- Specified by:
unregisterListener
in interfaceSystemConfigurationChangeDispatcher
-
-