Interface ComponentEventManager


  • public interface ComponentEventManager
    Manages Component Events (when a component instance is created for example). It's recommended that implementations use the Observation module to send the events. We're introducing this level of indirection in order to be able to perform some processing before the events are fired. For example one implementation may want to stack the events before sending them.
    Since:
    2.0M1
    Version:
    $Id: e22170fc69389448095997fe825a961d2dc738e5 $
    • Method Detail

      • notifyComponentRegistered

        void notifyComponentRegistered​(ComponentDescriptor<?> descriptor,
                                       ComponentManager componentManager)
        Notify all listeners that a component with the passed descriptor has been registered.
        Parameters:
        descriptor - the descriptor for the instantiated component
        componentManager - the ComponentManager where the component has been registered
        Since:
        2.0M2
      • notifyComponentUnregistered

        void notifyComponentUnregistered​(ComponentDescriptor<?> descriptor,
                                         ComponentManager componentManager)
        Notify all listeners that a component with the passed descriptor has been unregistered.
        Parameters:
        descriptor - the descriptor for the instantiated component
        componentManager - the ComponentManager from where the component has been unregistered
        Since:
        3.3