org.jboss.seam.faces.context
Class RenderScopedContext

java.lang.Object
  extended by org.jboss.seam.faces.context.RenderScopedContext
All Implemented Interfaces:
Serializable, EventListener, Context, PhaseListener

@RequestScoped
public class RenderScopedContext
extends Object
implements Context, PhaseListener, Serializable

This class provides lifecycle management for the RenderContext

Author:
Lincoln Baxter, III, Brian Leathem
See Also:
Serialized Form

Field Summary
static String RENDER_SCOPE_URL_KEY
           
 
Constructor Summary
RenderScopedContext()
           
 
Method Summary
 void afterPhase(PhaseEvent event)
          Destroy the current context since Render Response has completed.
 void beforePhase(PhaseEvent arg0)
           
 int countRenderContexts()
           
<T> T
get(Contextual<T> component)
           
<T> T
get(Contextual<T> component, CreationalContext<T> creationalContext)
           
 RenderContext getContextInstance()
           
 PhaseId getPhaseId()
           
 String getRequestParameterName()
          Get the name of the request parameter to contain the current RenderContext id.
 Class<? extends Annotation> getScope()
           
 boolean isActive()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RENDER_SCOPE_URL_KEY

public static final String RENDER_SCOPE_URL_KEY
Constructor Detail

RenderScopedContext

public RenderScopedContext()
Method Detail

getContextInstance

@Produces
@Named
@RequestScoped
public RenderContext getContextInstance()

afterPhase

public void afterPhase(PhaseEvent event)
Destroy the current context since Render Response has completed.

Specified by:
afterPhase in interface PhaseListener

beforePhase

public void beforePhase(PhaseEvent arg0)
Specified by:
beforePhase in interface PhaseListener

getPhaseId

public PhaseId getPhaseId()
Specified by:
getPhaseId in interface PhaseListener

get

public <T> T get(Contextual<T> component)
Specified by:
get in interface Context

get

public <T> T get(Contextual<T> component,
                 CreationalContext<T> creationalContext)
Specified by:
get in interface Context

isActive

public boolean isActive()
Specified by:
isActive in interface Context

getScope

public Class<? extends Annotation> getScope()
Specified by:
getScope in interface Context

countRenderContexts

public int countRenderContexts()

getRequestParameterName

public String getRequestParameterName()
Get the name of the request parameter to contain the current RenderContext id.



Copyright © 2009-2011 Seam Framework. All Rights Reserved.