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: 1a8d67d86a699555547f9a990a20312ffd355551 $

Method Summary
 void notifyComponentRegistered(ComponentDescriptor<?> descriptor)
          Deprecated. since 3.3 use notifyComponentRegistered(ComponentDescriptor, ComponentManager) instead
 void notifyComponentRegistered(ComponentDescriptor<?> descriptor, ComponentManager componentManager)
          Notify all listeners that a component with the passed descriptor has been registered.
 void notifyComponentUnregistered(ComponentDescriptor<?> descriptor)
          Deprecated. since 3.3 use notifyComponentUnregistered(ComponentDescriptor, ComponentManager) instead
 void notifyComponentUnregistered(ComponentDescriptor<?> descriptor, ComponentManager componentManager)
          Notify all listeners that a component with the passed descriptor has been unregistered.
 

Method Detail

notifyComponentRegistered

@Deprecated
void notifyComponentRegistered(ComponentDescriptor<?> descriptor)
Deprecated. since 3.3 use notifyComponentRegistered(ComponentDescriptor, ComponentManager) instead

Notify all listeners that a component with the passed descriptor has been registered.

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

notifyComponentRegistered

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

Parameters:
descriptor - the descriptor for the instantiated component
componentManager - the ComponentManager where the component has been registered
Since:
2.0M2

notifyComponentUnregistered

@Deprecated
void notifyComponentUnregistered(ComponentDescriptor<?> descriptor)
Deprecated. since 3.3 use notifyComponentUnregistered(ComponentDescriptor, ComponentManager) instead

Notify all listeners that a component with the passed descriptor has been unregistered.

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

notifyComponentUnregistered

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

Parameters:
descriptor - the descriptor for the instantiated component
componentManager - the ComponentManager from where the component has been unregistered
Since:
3.3


Copyright © 2004-2011 XWiki. All Rights Reserved.