Uses of Class
jakarta.faces.event.SystemEvent
Packages that use SystemEvent
Package
Description
-
Uses of SystemEvent in jakarta.faces.application
Method parameters in jakarta.faces.application with type arguments of type SystemEventModifier and TypeMethodDescriptionvoidApplication.publishEvent(FacesContext context, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source) This method functions exactly likeApplication.publishEvent(FacesContext,Class,Object), except the run-time must use the argumentsourceBaseTypeto find the matching listener instead of using theClassof thesourceargument.voidApplication.publishEvent(FacesContext context, Class<? extends SystemEvent> systemEventClass, Object source) IfFacesContext.isProcessingEvents()istrueand there are one or more listeners for events of the type represented bysystemEventClass, call those listeners, passingsourceas the source of the event.voidApplicationWrapper.publishEvent(FacesContext context, Class<? extends SystemEvent> systemEventClass, Class<?> sourceBaseType, Object source) The default behavior of this method is to callApplication.publishEvent(jakarta.faces.context.FacesContext, Class, Class, Object)on the wrappedApplicationobject.voidApplicationWrapper.publishEvent(FacesContext context, Class<? extends SystemEvent> systemEventClass, Object source) The default behavior of this method is to callApplication.publishEvent(jakarta.faces.context.FacesContext, Class, Object)on the wrappedApplicationobject.voidApplication.subscribeToEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) Install the listener instance referenced by argumentlistenerinto application as a listener for events of typesystemEventClass.voidApplication.subscribeToEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener) Install the listener instance referenced by argumentlistenerinto the application as a listener for events of typesystemEventClassthat originate from objects of typesourceClass.voidApplicationWrapper.subscribeToEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) The default behavior of this method is to callApplication.subscribeToEvent(Class, jakarta.faces.event.SystemEventListener)on the wrappedApplicationobject.voidApplicationWrapper.subscribeToEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener) The default behavior of this method is to callApplication.subscribeToEvent(Class, Class, jakarta.faces.event.SystemEventListener)on the wrappedApplicationobject.voidApplication.unsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) Remove the listener instance referenced by argumentlistenerfrom the application as a listener for events of typesystemEventClass.voidApplication.unsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener) Remove the listener instance referenced by argumentlistenerfrom the application as a listener for events of typesystemEventClassthat originate from objects of typesourceClass.voidApplicationWrapper.unsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, SystemEventListener listener) The default behavior of this method is to callApplication.unsubscribeFromEvent(Class, jakarta.faces.event.SystemEventListener)on the wrappedApplicationobject.voidApplicationWrapper.unsubscribeFromEvent(Class<? extends SystemEvent> systemEventClass, Class<?> sourceClass, SystemEventListener listener) The default behavior of this method is to callApplication.unsubscribeFromEvent(Class, Class, jakarta.faces.event.SystemEventListener)on the wrappedApplicationobject. -
Uses of SystemEvent in jakarta.faces.component
Method parameters in jakarta.faces.component with type arguments of type SystemEventModifier and TypeMethodDescriptionUIComponent.getListenersForEventClass(Class<? extends SystemEvent> eventClass) This implementation throwsUnsupportedOperationExceptionand is provided for the sole purpose of not breaking existing applications that extend this class.UIComponentBase.getListenersForEventClass(Class<? extends SystemEvent> eventClass) Return theSystemEventListenerinstances registered on thisUIComponentinstance that are interested in events of typeeventClass.UIViewRoot.getViewListenersForEventClass(Class<? extends SystemEvent> systemEvent) Return theSystemEventListenerinstances registered on thisUIComponentinstance that are interested in events of typeeventClass.voidUIComponent.subscribeToEvent(Class<? extends SystemEvent> eventClass, ComponentSystemEventListener componentListener) This implementation throwsUnsupportedOperationExceptionand is provided for the sole purpose of not breaking existing applications that extend this class.voidUIComponentBase.subscribeToEvent(Class<? extends SystemEvent> eventClass, ComponentSystemEventListener componentListener) Install the listener instance referenced by argumentcomponentListeneras a listener for events of typeeventClassoriginating from this specific instance ofUIComponent.voidUIViewRoot.subscribeToViewEvent(Class<? extends SystemEvent> systemEvent, SystemEventListener listener) Install the listener instance referenced by argumentlistenerinto theUIViewRootas a listener for events of typesystemEventClass.voidUIComponent.unsubscribeFromEvent(Class<? extends SystemEvent> eventClass, ComponentSystemEventListener componentListener) This implementation throwsUnsupportedOperationExceptionand is provided for the sole purpose of not breaking existing applications that extend this class.voidUIComponentBase.unsubscribeFromEvent(Class<? extends SystemEvent> eventClass, ComponentSystemEventListener componentListener) Remove the listener instance referenced by argumentcomponentListeneras a listener for events of typeeventClassoriginating from this specific instance ofUIComponent.voidUIViewRoot.unsubscribeFromViewEvent(Class<? extends SystemEvent> systemEvent, SystemEventListener listener) Remove the listener instance referenced by argumentlistenerfrom theUIViewRootas a listener for events of typesystemEventClass. -
Uses of SystemEvent in jakarta.faces.context
Methods in jakarta.faces.context with parameters of type SystemEventModifier and TypeMethodDescriptionabstract voidExceptionHandler.processEvent(SystemEvent exceptionQueuedEvent) When called, the listener can assume that any guarantees given in the javadoc for the specificSystemEventsubclass are true.voidExceptionHandlerWrapper.processEvent(SystemEvent event) The default behavior of this method is to callExceptionHandler.processEvent(jakarta.faces.event.SystemEvent)on the wrappedExceptionHandlerobject. -
Uses of SystemEvent in jakarta.faces.event
Subclasses of SystemEvent in jakarta.faces.eventModifier and TypeClassDescriptionclassComponentSystemEvent is the base class forSystemEvents that are specific to aUIComponentinstance.classThe system event facility will create an instance of this class wheneverApplication.publishEvent(jakarta.faces.context.FacesContext, java.lang.Class<? extends jakarta.faces.event.SystemEvent>, java.lang.Object)is called withExceptionQueuedEvent.classassystemEventClassargument.classWhen an instance of this event is passed toSystemEventListener.processEvent(jakarta.faces.event.SystemEvent)orComponentSystemEventListener.processEvent(jakarta.faces.event.ComponentSystemEvent), the listener implementation may assume that thesourceof this event instance is aUIComponentinstance and that either that instance or an ancestor of that instance was just added to the view.classThis event must be published by the runtime after all configuration resources have been parsed and processed.classDeprecated, for removal: This API element is subject to removal in a future version.classThis event must be published by a call to {jakarta.faces.application.Application#publishEvent} when the view map is first created.classThis event must be published by a call toApplication.publishEvent(jakarta.faces.context.FacesContext, java.lang.Class<? extends jakarta.faces.event.SystemEvent>, java.lang.Object)when a value is kept in the flash.classThis event must be published by a call toApplication.publishEvent(jakarta.faces.context.FacesContext, java.lang.Class<? extends jakarta.faces.event.SystemEvent>, java.lang.Object)when a value is stored in the flash.classWhen an instance of this event is passed toSystemEventListener.processEvent(jakarta.faces.event.SystemEvent)orComponentSystemEventListener.processEvent(jakarta.faces.event.ComponentSystemEvent), the listener implementation may assume that thesourceof this event instance is theUIViewRootinstance that has just been rendered.classWhen an instance of this event is passed toSystemEventListener.processEvent(jakarta.faces.event.SystemEvent)orComponentSystemEventListener.processEvent(jakarta.faces.event.ComponentSystemEvent), the listener implementation may assume that thesourceof this event instance is in a tree that has just had its state restored.classWhen an instance of this event is passed toSystemEventListener.processEvent(jakarta.faces.event.SystemEvent)orComponentSystemEventListener.processEvent(jakarta.faces.event.ComponentSystemEvent), the listener implementation may assume that thesourceof this event instance is theUIComponentinstance that is that has just been validated.classThis event must be published by a call toApplication.publishEvent(jakarta.faces.context.FacesContext, java.lang.Class<? extends jakarta.faces.event.SystemEvent>, java.lang.Object)before the flash is cleared.classThis event must be published by the runtime before the factories associated with thisApplicationare released.classDeprecated, for removal: This API element is subject to removal in a future version.becauseCustomScopehas been removed from Faces in favor of CDI.classThis event must be published by a call toApplication.publishEvent(jakarta.faces.context.FacesContext, java.lang.Class<? extends jakarta.faces.event.SystemEvent>, java.lang.Object)when theclearmethod is called on the map returned fromUIViewRoot.getViewMap().classThis event must be published by a call toApplication.publishEvent(jakarta.faces.context.FacesContext, java.lang.Class<? extends jakarta.faces.event.SystemEvent>, java.lang.Object)when a value is removed from the flash.classWhen an instance of this event is passed toSystemEventListener.processEvent(jakarta.faces.event.SystemEvent)orComponentSystemEventListener.processEvent(jakarta.faces.event.ComponentSystemEvent), the listener implementation may assume that thesourceof this event instance is aUIComponentinstance that is about to be removed from the view.classWhen an instance of this event is passed toSystemEventListener.processEvent(jakarta.faces.event.SystemEvent)orComponentSystemEventListener.processEvent(jakarta.faces.event.ComponentSystemEvent), the listener implementation may assume that thesourceof this event instance is theUIComponentinstance that is about to be rendered and that it is safe to callUIComponent.getParent(),UIComponent.getClientId(), and other methods that depend upon the component instance being in the view.classWhen an instance of this event is passed toSystemEventListener.processEvent(jakarta.faces.event.SystemEvent)orComponentSystemEventListener.processEvent(jakarta.faces.event.ComponentSystemEvent), the listener implementation may assume that thesourceof this event instance is theUIViewRootinstance that is about to be rendered.classWhen an instance of this event is passed toSystemEventListener.processEvent(jakarta.faces.event.SystemEvent)orComponentSystemEventListener.processEvent(jakarta.faces.event.ComponentSystemEvent), the listener implementation may assume that thesourceof this event instance is theUIComponentinstance that is about to be validated.Methods in jakarta.faces.event with parameters of type SystemEventModifier and TypeMethodDescriptionvoidSystemEventListener.processEvent(SystemEvent event) When called, the listener can assume that any guarantees given in the javadoc for the specificSystemEventsubclass are true.Method parameters in jakarta.faces.event with type arguments of type SystemEventModifier and TypeMethodDescriptionExceptionQueuedEventContext.getListenersForEventClass(Class<? extends SystemEvent> facesEventClass) Return aListthat contains a single entry, theExceptionHandlerfor the current request.SystemEventListenerHolder.getListenersForEventClass(Class<? extends SystemEvent> facesEventClass)
CustomScopehas been removed from Faces in favor of CDI.