PhaseListener (Java EE 5)

Java EE API


javax.faces.event Interface PhaseListener

All Superinterfaces:
EventListener, Serializable

public interface PhaseListener
extends EventListener, Serializable

Implements: java.util.EventListener, java.io.Serializable

该接口由希望在请求处理生命周期的每个标准阶段的处理开始和结束时获得通知的对象实现。

英文文档:

An interface implemented by objects that wish to be notified at the beginning and ending of processing for each standard phase of the request processing lifecycle.


Method Summary
 void
 void
 PhaseId
 

Method Detail

public void afterPhase(PhaseEvent event)

处理通知“特定阶段的处理刚刚完成”。

英文文档:

afterPhase

void afterPhase(PhaseEvent event)

Handle a notification that the processing for a particular phase has just been completed.


public void beforePhase(PhaseEvent event)

处理通知“对请求处理生命周期特定阶段的处理即将开始”。

英文文档:

beforePhase

void beforePhase(PhaseEvent event)

Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin.


public PhaseId getPhaseId()

返回请求处理阶段(该阶段内此侦听器侦听处理 PhaseEvent 事件)的标识符。合法值是由 PhaseId 类定义的单件实例,包括 PhaseId.ANY_PHASE(表示希望获得所有标准阶段的通知)。

英文文档:

getPhaseId

PhaseId getPhaseId()

Return the identifier of the request processing phase during which this listener is interested in processing PhaseEvent events. Legal values are the singleton instances defined by the PhaseId class, including PhaseId.ANY_PHASE to indicate an interest in being notified for all standard phases.



Submit a bug or feature

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

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

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