Package jakarta.faces.event
Class PostConstructCustomScopeEvent
- java.lang.Object
- 
- java.util.EventObject
- 
- jakarta.faces.event.SystemEvent
- 
- jakarta.faces.event.PostConstructCustomScopeEvent
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class PostConstructCustomScopeEvent extends SystemEvent This class is provided to allow custom scopes to publish a "post construct" event in the same way that other scopes do to let the application become aware of the beginning of the scope. The runtime must listen for this event and invoke any PostConstructannotated methods on any of the beans in this scope as appropriate. The following code can be used as a template for publishing such an event.Map<String, Object> myScope = getMyScope(); ScopeContext scopeContext = new ScopeContext("myScope", myScope); applicationPublishEvent(PostConstructCustomScopeEvent.class, scopeContext);- Since:
- 2.0
- See Also:
- Serialized Form
 
- 
- 
Field Summary- 
Fields inherited from class java.util.EventObjectsource
 
- 
 - 
Constructor SummaryConstructors Constructor Description PostConstructCustomScopeEvent(FacesContext facesContext, ScopeContext scopeContext)An instance of this event indicates that the custom scope enclosed within the argumentscopeContextwas just created.PostConstructCustomScopeEvent(ScopeContext scopeContext)An instance of this event indicates that the custom scope enclosed within the argumentscopeContextwas just created.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ScopeContextgetContext()Return theScopeContextfor this event.- 
Methods inherited from class jakarta.faces.event.SystemEventgetFacesContext, isAppropriateListener, processListener
 - 
Methods inherited from class java.util.EventObjectgetSource, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
PostConstructCustomScopeEventpublic PostConstructCustomScopeEvent(ScopeContext scopeContext) An instance of this event indicates that the custom scope enclosed within the argument scopeContextwas just created.- Parameters:
- scopeContext- A structure that contains the name of the scope and the scope itself exposed as a- Map<String, Object>.
 
 - 
PostConstructCustomScopeEventpublic PostConstructCustomScopeEvent(FacesContext facesContext, ScopeContext scopeContext) An instance of this event indicates that the custom scope enclosed within the argument scopeContextwas just created.- Parameters:
- facesContext- the Faces context.
- scopeContext- A structure that contains the name of the scope and the scope itself exposed as a- Map<String, Object>.
 
 
- 
 - 
Method Detail- 
getContextpublic ScopeContext getContext() Return the ScopeContextfor this event.- Returns:
- the scope context.
 
 
- 
 
-