org.jboss.seam.faces.context
Class RenderScopedContext
java.lang.Object
org.jboss.seam.faces.context.RenderScopedContext
- All Implemented Interfaces:
- Serializable, EventListener, javax.enterprise.context.spi.Context, javax.faces.event.PhaseListener
@RequestScoped
public class RenderScopedContext
- extends Object
- implements javax.enterprise.context.spi.Context, javax.faces.event.PhaseListener, Serializable
This class provides lifecycle management for the RenderContext
- Author:
- Lincoln Baxter, III, Brian Leathem
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RENDER_SCOPE_URL_KEY
public static final String RENDER_SCOPE_URL_KEY
RenderScopedContext
public RenderScopedContext()
getContextInstance
@Produces
@Named
@RequestScoped
public org.jboss.seam.faces.context.RenderContext getContextInstance()
afterPhase
public void afterPhase(javax.faces.event.PhaseEvent event)
- Destroy the current context since Render Response has completed.
- Specified by:
afterPhase in interface javax.faces.event.PhaseListener
beforePhase
public void beforePhase(javax.faces.event.PhaseEvent arg0)
- Specified by:
beforePhase in interface javax.faces.event.PhaseListener
getPhaseId
public javax.faces.event.PhaseId getPhaseId()
- Specified by:
getPhaseId in interface javax.faces.event.PhaseListener
get
public <T> T get(javax.enterprise.context.spi.Contextual<T> component)
- Specified by:
get in interface javax.enterprise.context.spi.Context
get
public <T> T get(javax.enterprise.context.spi.Contextual<T> component,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
- Specified by:
get in interface javax.enterprise.context.spi.Context
isActive
public boolean isActive()
- Specified by:
isActive in interface javax.enterprise.context.spi.Context
getScope
public Class<? extends Annotation> getScope()
- Specified by:
getScope in interface javax.enterprise.context.spi.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.