站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Java Platform, Enterprise Edition v5.0 API Specifications

PhaseListener (Java EE 5 SDK) - Java Platform, Enterprise Edition v5.0 API Specifications

Java EE 5 SDK

javax.faces.event
Interface PhaseListener

All Superinterfaces:
EventListener, Serializable

public interface PhaseListener
extends EventListener, 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 afterPhase(PhaseEvent event)
          Handle a notification that the processing for a particular phase has just been completed.
 void beforePhase(PhaseEvent event)
          Handle a notification that the processing for a particular phase of the request processing lifecycle is about to begin.
 PhaseId getPhaseId()
          Return the identifier of the request processing phase during which this listener is interested in processing PhaseEvent events.
 

Method Detail

afterPhase

void afterPhase(PhaseEvent event)

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


beforePhase

void beforePhase(PhaseEvent event)

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


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.


Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.