Interface SystemEventListenerHolder
-
- All Known Implementing Classes:
ExceptionQueuedEventContext,HtmlBody,HtmlColumn,HtmlCommandButton,HtmlCommandLink,HtmlCommandScript,HtmlDataTable,HtmlDoctype,HtmlForm,HtmlGraphicImage,HtmlHead,HtmlInputFile,HtmlInputHidden,HtmlInputSecret,HtmlInputText,HtmlInputTextarea,HtmlMessage,HtmlMessages,HtmlOutcomeTargetButton,HtmlOutcomeTargetLink,HtmlOutputFormat,HtmlOutputLabel,HtmlOutputLink,HtmlOutputText,HtmlPanelGrid,HtmlPanelGroup,HtmlSelectBooleanCheckbox,HtmlSelectManyCheckbox,HtmlSelectManyListbox,HtmlSelectManyMenu,HtmlSelectOneListbox,HtmlSelectOneMenu,HtmlSelectOneRadio,UIColumn,UICommand,UIComponent,UIComponentBase,UIData,UIForm,UIGraphic,UIImportConstants,UIInput,UIMessage,UIMessages,UINamingContainer,UIOutcomeTarget,UIOutput,UIPanel,UIParameter,UISelectBoolean,UISelectItem,UISelectItemGroup,UISelectItemGroups,UISelectItems,UISelectMany,UISelectOne,UIViewAction,UIViewParameter,UIViewRoot,UIWebsocket
public interface SystemEventListenerHolderClasses that implement this interface agree to maintain a list of
SystemEventListenerinstances for each kind ofSystemEventthey can generate. This interface enables arbitrary Objects to act as the source forSystemEventinstances.If the implementing class is a
UIComponentor is referenced by aUIComponent, care must be taken to ensure that the implementing class, and all the members of the list returned bygetListenersForEventClass(java.lang.Class<? extends jakarta.faces.event.SystemEvent>)work correctly with the state management system. One way to ensure this is to have the class and the list members implementStateHolderorSerializable.- Since:
- 2.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<SystemEventListener>getListenersForEventClass(Class<? extends SystemEvent> facesEventClass)
-
-
-
Method Detail
-
getListenersForEventClass
List<SystemEventListener> getListenersForEventClass(Class<? extends SystemEvent> facesEventClass)
Return a
ListofSystemEventListenerinstances that have been installed into the class implementing this interface.- Parameters:
facesEventClass- the class for which listeners are to be returned- Returns:
- the listeners for the argument class
-
-