public class ComponentDescriptorAddedEvent extends AbstractComponentDescriptorEvent
The event also send the following parameters:
ComponentManager
where the component was registeredComponentDescriptor
instanceConstructor and 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) |
Modifier and Type | Method and Description |
---|---|
boolean |
matches(Object otherEvent) |
equals, getRole, getRoleHint, getRoleType, hashCode, toString
public ComponentDescriptorAddedEvent()
public ComponentDescriptorAddedEvent(Class<?> role)
role
- the component role to watch (all components matching this role will trigger this event)public ComponentDescriptorAddedEvent(Type roleType)
roleType
- the component role to watch (all components matching this role will trigger this event)public ComponentDescriptorAddedEvent(Class<?> role, String roleHint)
role
- the component role to watchroleHint
- the component role hint to watchpublic boolean matches(Object otherEvent)
matches
in interface Event
matches
in class AbstractComponentDescriptorEvent
Copyright © 2004–2021 XWiki. All rights reserved.