IT. Expert System.

Java Enterprise Edition (EE)

PostConstructCustomScopeEvent


javax.faces.event
Class PostConstructCustomScopeEvent

java.lang.Object
  java.util.EventObject
      javax.faces.event.SystemEvent
          javax.faces.event.PostConstructCustomScopeEvent
All Implemented Interfaces:
java.io.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 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:
Serialized Form

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 scopeContext was just created.

 
Method Summary
 ScopeContext getContext()
          

Return the ScopeContext for this event.

 
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

PostConstructCustomScopeEvent

public PostConstructCustomScopeEvent(ScopeContext scopeContext)

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 a Map<String, Object>.
Method Detail

getContext

public ScopeContext getContext()

Return the ScopeContext for this event.



Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 1191 / . Delta: 0.01973 с