Top Description Fields Constructors Methods
com.sun.faces.lifecycle

public Class ELResolverInitPhaseListener

extends Object
implements PhaseListener
Class Inheritance
All Implemented Interfaces
jakarta.faces.event.PhaseListener, java.io.Serializable, java.util.EventListener
Imports
java.util.Iterator, com.sun.faces.application.ApplicationAssociate, jakarta.faces.FactoryFinder, jakarta.faces.event.PhaseEvent, .PhaseId, .PhaseListener, jakarta.faces.lifecycle.Lifecycle, .LifecycleFactory

This class is used to register the Faces ELResolver stack with the Jakarta Server Pages container.

We overload it a bit to set a bit on the ApplicationAssociate stating we've processed a request to indicate the appliation is fully initialized.

After the first request, this PhaseListener will remove itself from all registered lifecycle instances registered with the application.

Since
1.2

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized void
afterPhase(PhaseEvent
the phase event.
event
)

Overrides default jakarta.faces.event.PhaseListener.afterPhase.

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

public synchronized void
beforePhase(PhaseEvent
the phase event.
event
)

Overrides default jakarta.faces.event.PhaseListener.beforePhase.

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

public PhaseId
getPhaseId()

Implements jakarta.faces.event.PhaseListener.getPhaseId.

Return the identifier of the request processing phase during which this listener is interested in processing jakarta.faces.event.PhaseEvent events.

public static void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

postInitCompletedback to summary
private boolean postInitCompleted
preInitCompletedback to summary
private boolean preInitCompleted
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ELResolverInitPhaseListenerback to summary
public ELResolverInitPhaseListener()

Method Detail

afterPhaseback to summary
public synchronized void afterPhase(PhaseEvent event)

Overrides default jakarta.faces.event.PhaseListener.afterPhase.

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

When invoked, this phase listener will remove itself as a registered PhaseListener with all Lifecycle instances.

Parameters
event:PhaseEvent

Doc from jakarta.faces.event.PhaseListener.afterPhase.

the phase event.

Annotations
@Override
beforePhaseback to summary
public synchronized void beforePhase(PhaseEvent event)

Overrides default jakarta.faces.event.PhaseListener.beforePhase.

Doc from jakarta.faces.event.PhaseListener.beforePhase.

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

Parameters
event:PhaseEvent

the phase event.

Annotations
@Override
getPhaseIdback to summary
public PhaseId getPhaseId()

Implements jakarta.faces.event.PhaseListener.getPhaseId.

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

We return PhaseId.ANY_PHASE.

Returns:PhaseId

Doc from jakarta.faces.event.PhaseListener.getPhaseId.

the phase id.

Annotations
@Override
removeELResolverInitPhaseListenerback to summary
public static void removeELResolverInitPhaseListener()