org.xwiki.component.manager
Interface ComponentEventManager


public interface ComponentEventManager

Manages Component Events (when a component instance is created for example). It's recommended that implementations use the Observation module to send the events. We're introducing this level of indirection in order to be able to perform some processing before the events are fired. For example one implementation may want to stack the events before sending them.

Since:
2.0M1
Version:
$Id$

Method Summary
 void notifyComponentRegistered(ComponentDescriptor<?> descriptor)
          Notify all listeners that a component with the passed descriptor has been registered.
 void notifyComponentUnregistered(ComponentDescriptor<?> descriptor)
          Notify all listeners that a component with the passed descriptor has been unregistered.
 

Method Detail

notifyComponentRegistered

void notifyComponentRegistered(ComponentDescriptor<?> descriptor)
Notify all listeners that a component with the passed descriptor has been registered.

Parameters:
descriptor - the descriptor for the instantiated component
Since:
2.0M2

notifyComponentUnregistered

void notifyComponentUnregistered(ComponentDescriptor<?> descriptor)
Notify all listeners that a component with the passed descriptor has been unregistered.

Parameters:
descriptor - the descriptor for the instantiated component
Since:
2.0M2


Copyright © 2004-2011 XWiki. All Rights Reserved.