Interface ListenersRegistry
 Core.getListenersRegistry().registerAfterCommitListener(objs -> {
     //pre-process entities that were committed
 });
 
 The callback represents a Consumer with its argument representing the entities which are subject
 to the mentioned action. In this case, it is a List of @IMendixObject
 that were committed. The registration of a callback can be done in a custom Java action.
 Once registered the callback in the example will be executed for every commit of any persistable entity in the application.
 So, usually entities should be filtered, e.g. by type, to avoid executing the logic inside the callback for any entity that is being
 committed in the application and thus reducing performance of the application.
 
A word of caution: it is not recommended to commit any Persistence Entities in the callbacks passed to
 registerAfterCommitListener(Consumer) or registerBeforeCommitListener(Consumer)
 since this will trigger the listeners to be executed again thus leading to an infinite loop.
- Since:
- 7.6
- 
Method SummaryModifier and TypeMethodDescription<T extends CoreAction<?>>
 voidaddListener(ActionListener<T> actionListener) Registers the given ActionListener to the ActionManager.voidRegisters an after-change callback.voidregisterAfterCommitListener(Consumer<List<IMendixObject>> action) Registers an after-commit callback.voidRegisters an after-create callback.voidregisterAfterDeleteListener(Consumer<List<IMendixObject>> action) Registers an after-delete callback.voidRegisters a before-change callback.voidRegisters a before-commit callback.voidRegisters a before-create callback.voidRegisters a before-delete callback.
- 
Method Details- 
addListenerRegisters the given ActionListener to the ActionManager.- Parameters:
- actionListener- the ActionListener to add.
 
- 
registerAfterCommitListenerRegisters an after-commit callback.- Parameters:
- action- a- Consumer.- List<IMendixObject>type parameter is the list of entities which were committed.
 
- 
registerBeforeCommitListenerRegisters a before-commit callback.- Parameters:
- action- a- Consumerinstance.- List<IMendixObject>type parameter is the list of entities which are to be committed.
 
- 
registerAfterDeleteListenerRegisters an after-delete callback.- Parameters:
- action- a- Consumerinstance.- List<IMendixObject>type parameter is the list of entities which are deleted.
 
- 
registerBeforeDeleteListenerRegisters a before-delete callback.- Parameters:
- action- a- Consumerinstance.- List<IMendixObject>type parameter is the list of entities which are to be deleted.
 
- 
registerAfterCreateListenerRegisters an after-create callback.- Parameters:
- action- a- Consumerinstance.- IMendixObjecttype parameter is the entity that was created.
 
- 
registerBeforeCreateListenerRegisters a before-create callback.- Parameters:
- action- a- Consumerinstance.- IMendixObjecttype parameter is the entity that is to be created. The IMendixObject instance will always be null, because the object is not yet created.
 
- 
registerAfterChangeListenerRegisters an after-change callback.- Parameters:
- action- a- Consumerinstance.- IMendixObjectis the entity that has been changed.
 
- 
registerBeforeChangeListenerRegisters a before-change callback.- Parameters:
- action- a- Consumerinstance.- IMendixObjectis the entity that is being changed.
 
 
-