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.
- Since:
- 2.6RC2
- Version:
- $Id: f9f319164027b955f0202bc46cb377d945fc4201 $
ComponentDescriptorAddedEvent
public ComponentDescriptorAddedEvent()
- Watches all roles (whenever a component is added it'll trigger this event).
ComponentDescriptorAddedEvent
@Deprecated
public ComponentDescriptorAddedEvent(Class<?> role)
- Deprecated. since 4.4RC1 use
ComponentDescriptorAddedEvent(Type)
instead
- 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
@Deprecated
public ComponentDescriptorAddedEvent(Class<?> role,
String roleHint)
- Deprecated. since 4.4RC1 use
ComponentDescriptorAddedEvent(Type, String)
instead
- Parameters:
role
- the component role to watchroleHint
- the component role hint to watch
ComponentDescriptorAddedEvent
public ComponentDescriptorAddedEvent(Type roleType,
String roleHint)
- Parameters:
roleType
- the component role to watchroleHint
- the component role hint to watch- Since:
- 4.4RC1
matches
public boolean matches(Object otherEvent)
- Specified by:
matches
in interface Event
- Overrides:
matches
in class AbstractComponentDescriptorEvent
Copyright © 2004-2013 XWiki. All Rights Reserved.