Package org.xwiki.component.event
Class ComponentDescriptorRemovedEvent
- java.lang.Object
-
- org.xwiki.component.event.AbstractComponentDescriptorEvent
-
- org.xwiki.component.event.ComponentDescriptorRemovedEvent
-
- All Implemented Interfaces:
ComponentDescriptorEvent
,Event
public class ComponentDescriptorRemovedEvent extends AbstractComponentDescriptorEvent
Event sent to tell that a new Component Descriptor has been unregistered.The event also send the following parameters:
- source: the
ComponentManager
where the component was registered - data: the
ComponentDescriptor
instance
- Since:
- 2.6RC2
- Version:
- $Id: d058a5a9f3aff33bb9d9c287e35ce8b5856d4971 $
-
-
Constructor Summary
Constructors Constructor Description ComponentDescriptorRemovedEvent()
Watches all roles (whenever a component is added it'll trigger this event).ComponentDescriptorRemovedEvent(Class<?> role)
ComponentDescriptorRemovedEvent(Class<?> role, String roleHint)
ComponentDescriptorRemovedEvent(Type roleType)
ComponentDescriptorRemovedEvent(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
-
ComponentDescriptorRemovedEvent
public ComponentDescriptorRemovedEvent()
Watches all roles (whenever a component is added it'll trigger this event).
-
ComponentDescriptorRemovedEvent
public ComponentDescriptorRemovedEvent(Class<?> role)
- Parameters:
role
- the component role to watch (all components matching this role will trigger this event)
-
ComponentDescriptorRemovedEvent
public ComponentDescriptorRemovedEvent(Type roleType)
- Parameters:
roleType
- the component role to watch (all components matching this role will trigger this event)- Since:
- 4.4RC1
-
ComponentDescriptorRemovedEvent
public ComponentDescriptorRemovedEvent(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
-
-