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);
Modifier and Type | Field and Description |
---|---|
private static final long |
Access | Constructor and Description |
---|---|
public | PostConstructCustomScopeEvent(ScopeContext
A structure that contains the name of the scope and the scope itself exposed as a
scopeContext)Map<String,
Object> .
An instance of this event indicates that the custom scope enclosed within the argument |
public | PostConstructCustomScopeEvent(FacesContext
the Faces context. facesContext, ScopeContext A structure that contains the name of the scope and the scope itself exposed as a
scopeContext)Map<String,
Object> .
An instance of this event indicates that the custom scope enclosed within the argument |
Modifier and Type | Method and Description |
---|---|
public ScopeContext |
serialVersionUID | back to summary |
---|---|
private static final long serialVersionUID |
PostConstructCustomScopeEvent | back to summary |
---|---|
public PostConstructCustomScopeEvent(ScopeContext scopeContext)
An instance of this event indicates that the custom scope enclosed within the argument
|
PostConstructCustomScopeEvent | back to summary |
---|---|
public PostConstructCustomScopeEvent(FacesContext facesContext, ScopeContext scopeContext)
An instance of this event indicates that the custom scope enclosed within the argument
|
getContext | back to summary |
---|---|
public ScopeContext getContext()
Return the
|