org.apache.shale.tiger.register.faces
Class PhaseListenerAdapter

java.lang.Object
  extended by org.apache.shale.tiger.register.faces.PhaseListenerAdapter
All Implemented Interfaces:
Serializable, EventListener, javax.faces.event.PhaseListener

public final class PhaseListenerAdapter
extends Object
implements javax.faces.event.PhaseListener

Adapter class for a phase listener that specifies the FacesPhaseListener annotation, but does not actually implement the PhaseListener interface.

See Also:
Serialized Form

Constructor Summary
PhaseListenerAdapter(Object instance)
          Construct a new adapter instance around the specified object instance, whose defining class MUST specify the FacesPhaseListener annotation, and whose implementation MUST NOT be an implementation of javax.faces.event.PhaseListener.
 
Method Summary
 void afterPhase(javax.faces.event.PhaseEvent event)
          Process an "after phase" event.
 void beforePhase(javax.faces.event.PhaseEvent event)
          Process a "before phase" event.
 javax.faces.event.PhaseId getPhaseId()
          Return the identifier of the phase(s) we are interested in.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhaseListenerAdapter

public PhaseListenerAdapter(Object instance)

Construct a new adapter instance around the specified object instance, whose defining class MUST specify the FacesPhaseListener annotation, and whose implementation MUST NOT be an implementation of javax.faces.event.PhaseListener.

Parameters:
instance - The object instance for which we should construct a call-through adapter
Throws:
IllegalArgumentException - if the class for the specified instance does not have a @FacesPhaseListener annotation
IllegalArgumentException - if the method specified by the
Method Detail

afterPhase

public void afterPhase(javax.faces.event.PhaseEvent event)

Process an "after phase" event.

Specified by:
afterPhase in interface javax.faces.event.PhaseListener
Parameters:
event - The PhaseEvent to be processed
Throws:
javax.faces.FacesException - if an exception occurs invoking the appropriate event handling method

beforePhase

public void beforePhase(javax.faces.event.PhaseEvent event)

Process a "before phase" event.

Specified by:
beforePhase in interface javax.faces.event.PhaseListener
Parameters:
event - The PhaseEvent to be processed
Throws:
javax.faces.FacesException - if an exception occurs invoking the appropriate event handling method

getPhaseId

public javax.faces.event.PhaseId getPhaseId()

Return the identifier of the phase(s) we are interested in.

Specified by:
getPhaseId in interface javax.faces.event.PhaseListener


Copyright © 2004-2007 Apache Software Foundation. All Rights Reserved.