Top Description Methods
javax.faces.event

public Interface SystemEventListenerHolder

Known Direct Implementers
javax.faces.event.ExceptionQueuedEventContext, javax.faces.component.UIComponent
Imports
java.util.List

Classes that implement this interface agree to maintain a list of SystemEventListener instances for each kind of SystemEvent they can generate. This interface enables arbitrary Objects to act as the source for SystemEvent instances.

If the implementing class is a javax.faces.component.UIComponent or is referenced by a UIComponent, care must be taken to ensure that the implementing class, and all the members of the list returned by getListenersForEventClass work correctly with the state management system. One way to ensure this is to have the class and the list members implement javax.faces.component.StateHolder or java.io.Serializable.

Since
2.0

Method Summary

Modifier and TypeMethod and Description
public List<SystemEventListener>

Returns:

the listeners for the argument class
getListenersForEventClass
(Class<? extends SystemEvent>
the class for which listeners are to be returned
facesEventClass
)

Return a List of SystemEventListener instances that have been installed into the class implementing this interface.

Method Detail

getListenersForEventClassback to summary
public List<SystemEventListener> getListenersForEventClass(Class<? extends SystemEvent> facesEventClass)

Return a List of SystemEventListener instances that have been installed into the class implementing this interface.

Parameters
facesEventClass:Class<? extends SystemEvent>

the class for which listeners are to be returned

Returns:List<SystemEventListener>

the listeners for the argument class