Package 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: e22170fc69389448095997fe825a961d2dc738e5 $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
notifyComponentRegistered(ComponentDescriptor<?> descriptor)
Deprecated.since 3.3 usenotifyComponentRegistered(ComponentDescriptor, ComponentManager)
insteadvoid
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 usenotifyComponentUnregistered(ComponentDescriptor, ComponentManager)
insteadvoid
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 usenotifyComponentRegistered(ComponentDescriptor, ComponentManager)
insteadNotify 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 componentcomponentManager
- the ComponentManager where the component has been registered- Since:
- 2.0M2
-
notifyComponentUnregistered
@Deprecated void notifyComponentUnregistered(ComponentDescriptor<?> descriptor)
Deprecated.since 3.3 usenotifyComponentUnregistered(ComponentDescriptor, ComponentManager)
insteadNotify 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 componentcomponentManager
- the ComponentManager from where the component has been unregistered- Since:
- 3.3
-
-