PhaseEvent (Java EE 5)

Java EE API


javax.faces.event Class PhaseEvent

java.lang.Object
  extended by java.util.EventObject
      extended by javax.faces.event.PhaseEvent
All Implemented Interfaces:
Serializable

public class PhaseEvent
extends EventObject

Extends: java.util.EventObject

对于指定的 FacesContext 封装的请求,PhaseEvent 表示请求处理生命周期特定阶段的处理开始或结束。

英文文档:

PhaseEvent represents the beginning or ending of processing for a particular phase of the request processing lifecycle, for the request encapsulated by the specified FacesContext.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
 
Constructor Summary
 
Method Summary
 FacesContext
 PhaseId
 
Methods inherited from class java.util.EventObject
 
Methods inherited from class java.lang.Object
 

Constructor Detail

public PhaseEvent(FacesContext context, PhaseId phaseId, Lifecycle lifecycle)

根据指定的参数构造一个新的事件对象。指定的 Lifecycle 将是此事件的源。

context 当前请求的 FacesContext
phaseId 当前请求处理生命周期阶段的标识符
lifecycle Lifecycle 实例
ThrowsNullPointerException: 如果 contextphaseIdLifecyclenull
英文文档:

PhaseEvent

public PhaseEvent(FacesContext context,
                  PhaseId phaseId,
                  Lifecycle lifecycle)

Construct a new event object from the specified parameters. The specified Lifecycle will be the source of this event.

Parameters:
context - FacesContext for the current request
phaseId - Identifier of the current request processing lifecycle phase
lifecycle - Lifecycle instance
Throws:
NullPointerException - if context or phaseId or Lifecycleis null

Method Detail

public FacesContext getFacesContext()

返回正处理的请求的 FacesContext

英文文档:

getFacesContext

public FacesContext getFacesContext()

Return the FacesContext for the request being processed.


public PhaseId getPhaseId()

返回表示当前请求处理生命周期阶段的 PhaseId

英文文档:

getPhaseId

public PhaseId getPhaseId()

Return the PhaseId representing the current request processing lifecycle phase.



Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!