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 Details

    • addTopiaEntityListener

      void addTopiaEntityListener(TopiaEntityListener listener)
      Register to the context a TopiaEntityListener about any TopiaEntity. listener instance will be notified AFTER any operation on the entity.
      Parameters:
      listener - the listener instance to register
    • addTopiaEntityListener

      void addTopiaEntityListener(Class<? extends TopiaEntity> entityClass, TopiaEntityListener listener)
      Register to the context a TopiaEntityListener about the given entity class. listener instance will be notified AFTER any operation on the entity.
      Parameters:
      entityClass - the TopiaEntity's class to listen
      listener - the listener instance to register
    • removeTopiaEntityListener

      void removeTopiaEntityListener(TopiaEntityListener listener)
      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 class
      listener - the listener instance to unregister
    • addTopiaEntityVetoable

      void addTopiaEntityVetoable(TopiaEntityVetoable vetoable)
      Register to the context a TopiaEntityVetoable about any TopiaEntity. vetoable instance will be notified BEFORE any operation on the entity.
      Parameters:
      vetoable - the vetoable instance to register
    • addTopiaEntityVetoable

      void addTopiaEntityVetoable(Class<? extends TopiaEntity> entityClass, TopiaEntityVetoable vetoable)
      Register to the context a TopiaEntityVetoable about the given entity class. vetoable instance will be notified BEFORE any operation on the entity.
      Parameters:
      entityClass - the TopiaEntity's class to listen
      vetoable - the vetoable instance to register
    • removeTopiaEntityVetoable

      void removeTopiaEntityVetoable(TopiaEntityVetoable vetoable)
      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 class
      vetoable - the vetoable instance to unregister
    • addTopiaEntitiesVetoable

      void addTopiaEntitiesVetoable(TopiaEntitiesVetoable vetoable)
      Register to the context a TopiaEntitiesVetoable about any TopiaEntity. vetoable instance will be notified BEFORE any entity load
      Parameters:
      vetoable - the vetoable instance to register
    • removeTopiaEntitiesVetoable

      void removeTopiaEntitiesVetoable(TopiaEntitiesVetoable vetoable)
      Unregister the given TopiaEntitiesVetoable about any TopiaEntity from the context
      Parameters:
      vetoable - the vetoable instance to unregister
    • addTopiaTransactionListener

      void addTopiaTransactionListener(TopiaTransactionListener listener)
      Register to the context a TopiaTransactionListener about the transaction. listener instance will be notified AFTER any operation on the transaction.
      Parameters:
      listener - the listener instance to register
    • removeTopiaTransactionListener

      void removeTopiaTransactionListener(TopiaTransactionListener listener)
      Unregister the given TopiaTransactionListener about the transaction from the context
      Parameters:
      listener - the listener instance to unregister
    • addTopiaTransactionVetoable

      void addTopiaTransactionVetoable(TopiaTransactionVetoable vetoable)
      Register to the context a TopiaTransactionVetoable about the transaction. vetoable instance will be notified BEFORE any operation on the transaction.
      Parameters:
      vetoable - the vetoable instance to register
    • removeTopiaTransactionVetoable

      void removeTopiaTransactionVetoable(TopiaTransactionVetoable vetoable)
      Unregister the given TopiaTransactionVetoable about the transaction from the context
      Parameters:
      vetoable - the vetoable instance to unregister
    • addPropertyChangeListener

      void addPropertyChangeListener(PropertyChangeListener listener)
      Register to the context a PropertyChangeListener about some entity's property change. listener instance will be notified AFTER any change on the entity's property
      Parameters:
      listener - the listener instance to register
    • removePropertyChangeListener

      void removePropertyChangeListener(PropertyChangeListener listener)
      Unregister the given PropertyChangeListener about some entity's property change from the context
      Parameters:
      listener - the listener instance to unregister
    • addTopiaSchemaListener

      void addTopiaSchemaListener(TopiaSchemaListener listener)
      Register to the context a TopiaSchemaListener about any schema modification. listener instance will be notified BEFORE and AFTER any change on the schema
      Parameters:
      listener - the listener instance to register
      Since:
      3.0
    • removeTopiaSchemaListener

      void removeTopiaSchemaListener(TopiaSchemaListener listener)
      Unregister the given TopiaSchemaListener about any schema modification from the context
      Parameters:
      listener - the listener instance to unregister
      Since:
      3.0