Package org.xwiki.component.event
Class ComponentDescriptorAddedEvent
- java.lang.Object
-
- org.xwiki.component.event.AbstractComponentDescriptorEvent
-
- org.xwiki.component.event.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 Summary
Constructors Constructor Description ComponentDescriptorAddedEvent()
Watches all roles (whenever a component is added it'll trigger this event).ComponentDescriptorAddedEvent(Class<?> role)
ComponentDescriptorAddedEvent(Class<?> role, String roleHint)
ComponentDescriptorAddedEvent(Type roleType)
ComponentDescriptorAddedEvent(Type roleType, String roleHint)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(Object otherEvent)
-
Methods inherited from class org.xwiki.component.event.AbstractComponentDescriptorEvent
equals, getRole, getRoleHint, getRoleType, hashCode, toString
-
-
-
-
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 watchroleHint
- the component role hint to watch
-
-
Method Detail
-
matches
public boolean matches(Object otherEvent)
- Specified by:
matches
in interfaceEvent
- Overrides:
matches
in classAbstractComponentDescriptorEvent
-
-