org.xwiki.component.event
Class ComponentDescriptorAddedEvent

java.lang.Object
  extended by org.xwiki.component.event.AbstractComponentDescriptorEvent
      extended by 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: e4464b35a381194d8bdfdad2c23253cbc96507c8 $

Constructor Summary
ComponentDescriptorAddedEvent()
          Watches all roles (whenever a component is added it'll trigger this event).
ComponentDescriptorAddedEvent(Class<?> role)
           
ComponentDescriptorAddedEvent(Class<?> role, String roleHint)
           
 
Method Summary
 boolean matches(Object otherEvent)
           
 
Methods inherited from class org.xwiki.component.event.AbstractComponentDescriptorEvent
getRole, getRoleHint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(Class<?> role,
                                     String roleHint)
Parameters:
role - the component role to watch
roleHint - the component role hint to watch
Method Detail

matches

public boolean matches(Object otherEvent)
Specified by:
matches in interface Event
Overrides:
matches in class AbstractComponentDescriptorEvent


Copyright © 2004-2012 XWiki. All Rights Reserved.