Interface TopiaListenableSupport
- All Known Subinterfaces:
TopiaApplicationContext<K>
- All Known Implementing Classes:
AbstractTopiaApplicationContext,AbstractTopiaListenableSupport,TopiaFiresSupport
public interface TopiaListenableSupport
This API provides methods to add/remove any kind of listener
- Since:
- 3.0
- Author:
- Arnaud Thimel (Code Lutin)
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegister to the context a PropertyChangeListener about some entity's property change.voidRegister to the context a TopiaEntitiesVetoable about any TopiaEntity.voidaddTopiaEntityListener(Class<? extends TopiaEntity> entityClass, TopiaEntityListener listener) Register to the context a TopiaEntityListener about the given entity class.voidaddTopiaEntityListener(TopiaEntityListener listener) Register to the context a TopiaEntityListener about any TopiaEntity.voidaddTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass, TopiaEntityVetoable vetoable) Register to the context a TopiaEntityVetoable about the given entity class.voidaddTopiaEntityVetoable(TopiaEntityVetoable vetoable) Register to the context a TopiaEntityVetoable about any TopiaEntity.voidaddTopiaSchemaListener(TopiaSchemaListener listener) Register to the context a TopiaSchemaListener about any schema modification.voidRegister to the context a TopiaTransactionListener about the transaction.voidRegister to the context a TopiaTransactionVetoable about the transaction.voidUnregister the given PropertyChangeListener about some entity's property change from the contextvoidUnregister the given TopiaEntitiesVetoable about any TopiaEntity from the contextvoidremoveTopiaEntityListener(Class<? extends TopiaEntity> entityClass, TopiaEntityListener listener) Unregister the given TopiaEntityListener about the given entity class from the contextvoidremoveTopiaEntityListener(TopiaEntityListener listener) Unregister the given TopiaEntityListener about any TopiaEntity from the contextvoidremoveTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass, TopiaEntityVetoable vetoable) Unregister the given TopiaEntityVetoable about the given entity class from the contextvoidremoveTopiaEntityVetoable(TopiaEntityVetoable vetoable) Unregister the given TopiaEntityVetoable about any TopiaEntity from the contextvoidremoveTopiaSchemaListener(TopiaSchemaListener listener) Unregister the given TopiaSchemaListener about any schema modification from the contextvoidUnregister the given TopiaTransactionListener about the transaction from the contextvoidUnregister the given TopiaTransactionVetoable about the transaction from the context
-
Method Details
-
addTopiaEntityListener
Register to the context a TopiaEntityListener about any TopiaEntity.listenerinstance will be notified AFTER any operation on the entity.- Parameters:
listener- the listener instance to register
-
addTopiaEntityListener
Register to the context a TopiaEntityListener about the given entity class.listenerinstance will be notified AFTER any operation on the entity.- Parameters:
entityClass- the TopiaEntity's class to listenlistener- the listener instance to register
-
removeTopiaEntityListener
Unregister the given TopiaEntityListener about any TopiaEntity from the context- Parameters:
listener- the listener instance to unregister
-
removeTopiaEntityListener
void removeTopiaEntityListener(Class<? extends TopiaEntity> entityClass, TopiaEntityListener listener) Unregister the given TopiaEntityListener about the given entity class from the context- Parameters:
entityClass- the listened TopiaEntity's classlistener- the listener instance to unregister
-
addTopiaEntityVetoable
Register to the context a TopiaEntityVetoable about any TopiaEntity.vetoableinstance will be notified BEFORE any operation on the entity.- Parameters:
vetoable- the vetoable instance to register
-
addTopiaEntityVetoable
Register to the context a TopiaEntityVetoable about the given entity class.vetoableinstance will be notified BEFORE any operation on the entity.- Parameters:
entityClass- the TopiaEntity's class to listenvetoable- the vetoable instance to register
-
removeTopiaEntityVetoable
Unregister the given TopiaEntityVetoable about any TopiaEntity from the context- Parameters:
vetoable- the vetoable instance to unregister
-
removeTopiaEntityVetoable
void removeTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass, TopiaEntityVetoable vetoable) Unregister the given TopiaEntityVetoable about the given entity class from the context- Parameters:
entityClass- the listened TopiaEntity's classvetoable- the vetoable instance to unregister
-
addTopiaEntitiesVetoable
Register to the context a TopiaEntitiesVetoable about any TopiaEntity.vetoableinstance will be notified BEFORE any entity load- Parameters:
vetoable- the vetoable instance to register
-
removeTopiaEntitiesVetoable
Unregister the given TopiaEntitiesVetoable about any TopiaEntity from the context- Parameters:
vetoable- the vetoable instance to unregister
-
addTopiaTransactionListener
Register to the context a TopiaTransactionListener about the transaction.listenerinstance will be notified AFTER any operation on the transaction.- Parameters:
listener- the listener instance to register
-
removeTopiaTransactionListener
Unregister the given TopiaTransactionListener about the transaction from the context- Parameters:
listener- the listener instance to unregister
-
addTopiaTransactionVetoable
Register to the context a TopiaTransactionVetoable about the transaction.vetoableinstance will be notified BEFORE any operation on the transaction.- Parameters:
vetoable- the vetoable instance to register
-
removeTopiaTransactionVetoable
Unregister the given TopiaTransactionVetoable about the transaction from the context- Parameters:
vetoable- the vetoable instance to unregister
-
addPropertyChangeListener
Register to the context a PropertyChangeListener about some entity's property change.listenerinstance will be notified AFTER any change on the entity's property- Parameters:
listener- the listener instance to register
-
removePropertyChangeListener
Unregister the given PropertyChangeListener about some entity's property change from the context- Parameters:
listener- the listener instance to unregister
-
addTopiaSchemaListener
Register to the context a TopiaSchemaListener about any schema modification.listenerinstance will be notified BEFORE and AFTER any change on the schema- Parameters:
listener- the listener instance to register- Since:
- 3.0
-
removeTopiaSchemaListener
Unregister the given TopiaSchemaListener about any schema modification from the context- Parameters:
listener- the listener instance to unregister- Since:
- 3.0
-