public class PreDestroyCustomScopeEvent extends SystemEvent
This class is provided to allow custom
scopes to publish a "pre 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
PreDestroy
annotated methods on any of the beans in this
scope as appropriate. See the example code on PostConstructCustomScopeEvent
for a usage example, replacing classes
as appropriate to make sense for this class.
source
Constructor and Description |
---|
PreDestroyCustomScopeEvent(FacesContext facesContext,
ScopeContext scopeContext)
An instance of this event indicates
that the custom scope enclosed within the argument
|
PreDestroyCustomScopeEvent(ScopeContext scopeContext)
An instance of this event indicates
that the custom scope enclosed within the argument
|
Modifier and Type | Method and Description |
---|---|
ScopeContext |
getContext()
Return the |
getFacesContext, isAppropriateListener, processListener
getSource, toString
public PreDestroyCustomScopeEvent(ScopeContext scopeContext)
An instance of this event indicates
that the custom scope enclosed within the argument
scopeContext
is about to end.
scopeContext
- A structure that contains the name of the
scope and the scope itself exposed as a Map<String,
Object>
.public PreDestroyCustomScopeEvent(FacesContext facesContext, ScopeContext scopeContext)
An instance of this event indicates
that the custom scope enclosed within the argument
scopeContext
is about to end.
facesContext
- the Faces context.scopeContext
- A structure that contains the name of the
scope and the scope itself exposed as a Map<String,
Object>
.public ScopeContext getContext()
Return the ScopeContext
for this event.
Copyright © 1996-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.