Class ComponentDescriptorAddedEvent

  • All Implemented Interfaces:
    ComponentDescriptorEvent, Event

    public class ComponentDescriptorAddedEvent
    extends AbstractComponentDescriptorEvent
    Event sent to tell that a new Component Descriptor has been registered.

    The event also send the following parameters:

    • source: the ComponentManager where the component was registered
    • data: the ComponentDescriptor instance
    Since:
    2.6RC2
    Version:
    $Id: 7087a3c5be3e8359c88c87291052d1aa57550d1d $
    • Constructor Detail

      • ComponentDescriptorAddedEvent

        public ComponentDescriptorAddedEvent()
        Watches all roles (whenever a component is added it'll trigger this event).
      • ComponentDescriptorAddedEvent

        public ComponentDescriptorAddedEvent​(Class<?> role)
        Parameters:
        role - the component role to watch (all components matching this role will trigger this event)
      • ComponentDescriptorAddedEvent

        public ComponentDescriptorAddedEvent​(Type roleType)
        Parameters:
        roleType - the component role to watch (all components matching this role will trigger this event)
        Since:
        4.4RC1
      • ComponentDescriptorAddedEvent

        public ComponentDescriptorAddedEvent​(Class<?> role,
                                             String roleHint)
        Parameters:
        role - the component role to watch
        roleHint - the component role hint to watch
      • ComponentDescriptorAddedEvent

        public ComponentDescriptorAddedEvent​(Type roleType,
                                             String roleHint)
        Parameters:
        roleType - the component role to watch
        roleHint - the component role hint to watch
        Since:
        4.4RC1