JSF-Spring

de.mindmatters.faces.spring.factory.xml
Class PhaseListenerDefinition

java.lang.Object
  extended by de.mindmatters.faces.spring.factory.xml.PhaseListenerDefinition

public final class PhaseListenerDefinition
extends java.lang.Object

A PhaseListenerDefinition encapsulates and describes a PhaseListener instance. Description (e.g. lifecycle-id) is needed for registration purposes.

Author:
Andreas Kuhrwahl

Constructor Summary
PhaseListenerDefinition(java.lang.String lifecycleId, PhaseListener phaseListener)
          Creates a definition with the given PhaseListener phaseListener and the lifecycle id.
 
Method Summary
 java.lang.String getLifecycleId()
           
 PhaseListener getPhaseListener()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PhaseListenerDefinition

public PhaseListenerDefinition(java.lang.String lifecycleId,
                               PhaseListener phaseListener)
Creates a definition with the given PhaseListener phaseListener and the lifecycle id.

Parameters:
lifecycleId - the lifecycle id
phaseListener - the PhaseListener
Method Detail

getLifecycleId

public java.lang.String getLifecycleId()
Returns:
the id of the Lifecycle the encapsulated PhaseListener will be registered for

getPhaseListener

public PhaseListener getPhaseListener()
Returns:
the encapsulated PhaseListener

JSF-Spring

Copyright © 2006 mindmatters GmbH & Co. KG