Package jakarta.faces.event
Class PostConstructCustomScopeEvent
java.lang.Object
java.util.EventObject
jakarta.faces.event.SystemEvent
jakarta.faces.event.PostConstructCustomScopeEvent
- All Implemented Interfaces:
Serializable
@Deprecated(since="4.1",
forRemoval=true)
public class PostConstructCustomScopeEvent
extends SystemEvent
Deprecated, for removal: This API element is subject to removal in a future version.
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 PostConstruct
annotated 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:
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionPostConstructCustomScopeEvent
(FacesContext facesContext, ScopeContext scopeContext) Deprecated, for removal: This API element is subject to removal in a future version.An instance of this event indicates that the custom scope enclosed within the argumentscopeContext
was just created.PostConstructCustomScopeEvent
(ScopeContext scopeContext) Deprecated, for removal: This API element is subject to removal in a future version.An instance of this event indicates that the custom scope enclosed within the argumentscopeContext
was just created. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated, for removal: This API element is subject to removal in a future version.Return theScopeContext
for this event.Methods inherited from class jakarta.faces.event.SystemEvent
getFacesContext, isAppropriateListener, processListener
Methods inherited from class java.util.EventObject
getSource, toString
-
Constructor Details
-
PostConstructCustomScopeEvent
Deprecated, for removal: This API element is subject to removal in a future version.An instance of this event indicates that the custom scope enclosed within the argument
scopeContext
was just created.- Parameters:
scopeContext
- A structure that contains the name of the scope and the scope itself exposed as aMap<String, Object>
.
-
PostConstructCustomScopeEvent
Deprecated, for removal: This API element is subject to removal in a future version.An instance of this event indicates that the custom scope enclosed within the argument
scopeContext
was just created.- Parameters:
facesContext
- the Faces context.scopeContext
- A structure that contains the name of the scope and the scope itself exposed as aMap<String, Object>
.
-
-
Method Details
-
getContext
Deprecated, for removal: This API element is subject to removal in a future version.Return the
ScopeContext
for this event.- Returns:
- the scope context.
-
CustomScope
has been removed from Faces in favor of CDI.