Spec-Zone .ru
спецификации, руководства, описания, API
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.EventObject javax.faces.event.SystemEvent javax.faces.event.PostConstructCustomScopeEvent
public class PostConstructCustomScopeEvent
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);
Field Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
PostConstructCustomScopeEvent(ScopeContext scopeContext)
An instance of this event indicates
that the custom scope enclosed within the argument
|
Method Summary | |
---|---|
ScopeContext |
getContext()
Return the |
Methods inherited from class javax.faces.event.SystemEvent |
---|
isAppropriateListener, processListener |
Methods inherited from class java.util.EventObject |
---|
getSource, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PostConstructCustomScopeEvent(ScopeContext scopeContext)
An instance of this event indicates
that the custom scope enclosed within the argument
scopeContext
was just created.
scopeContext
- A structure that contains the name of the
scope and the scope itself exposed as a Map<String,
Object>
.Method Detail |
---|
public ScopeContext getContext()
Return the ScopeContext
for this event.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to
Generated on 10-February-2011 12:41