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: ComponentDescriptorAddedEvent.java 32680 2010-11-09 16:32:48Z vmassol $
|
Method Summary |
boolean |
matches(java.lang.Object otherEvent)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComponentDescriptorAddedEvent
public ComponentDescriptorAddedEvent()
- Watches all roles (whenever a component is added it'll trigger this event).
ComponentDescriptorAddedEvent
public ComponentDescriptorAddedEvent(java.lang.Class<?> role)
- Parameters:
role - the component role to watch (all components matching this role will trigger this event)
ComponentDescriptorAddedEvent
public ComponentDescriptorAddedEvent(java.lang.Class<?> role,
java.lang.String roleHint)
- Parameters:
role - the component role to watchroleHint - the component role hint to watch
matches
public boolean matches(java.lang.Object otherEvent)
-
- Specified by:
matches in interface Event- Overrides:
matches in class AbstractComponentDescriptorEvent
- See Also:
AbstractComponentDescriptorEvent.matches(java.lang.Object)
Copyright © 2004-2011 XWiki. All Rights Reserved.