org.apache.myfaces.extensions.cdi.jsf2.impl.listener.request
Class CodiFacesContextFactory

java.lang.Object
  extended by javax.faces.context.FacesContextFactory
      extended by org.apache.myfaces.extensions.cdi.jsf2.impl.listener.request.CodiFacesContextFactory
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.context.FacesContextFactory>, Deactivatable

public class CodiFacesContextFactory
extends javax.faces.context.FacesContextFactory
implements Deactivatable

Author:
Gerhard Petracek

Constructor Summary
CodiFacesContextFactory(javax.faces.context.FacesContextFactory wrappedFacesContextFactory)
          Constructor for wrapping the given FacesContextFactory
 
Method Summary
 javax.faces.context.FacesContext getFacesContext(Object context, Object request, Object response, javax.faces.lifecycle.Lifecycle lifecycle)
          Wrapps the created FacesContext with CodiFacesContextWrapper
 javax.faces.context.FacesContextFactory getWrapped()
          
 boolean isActivated()
          
static javax.faces.context.FacesContext wrapFacesContext(javax.faces.context.FacesContext facesContext)
          Allows to wrap the given FacesContext manually
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodiFacesContextFactory

public CodiFacesContextFactory(javax.faces.context.FacesContextFactory wrappedFacesContextFactory)
Constructor for wrapping the given FacesContextFactory

Parameters:
wrappedFacesContextFactory - wrapped faces-context-factory which should be used
Method Detail

getFacesContext

public javax.faces.context.FacesContext getFacesContext(Object context,
                                                        Object request,
                                                        Object response,
                                                        javax.faces.lifecycle.Lifecycle lifecycle)
Wrapps the created FacesContext with CodiFacesContextWrapper

Specified by:
getFacesContext in class javax.faces.context.FacesContextFactory

getWrapped

public javax.faces.context.FacesContextFactory getWrapped()

Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.context.FacesContextFactory>
Overrides:
getWrapped in class javax.faces.context.FacesContextFactory

wrapFacesContext

public static javax.faces.context.FacesContext wrapFacesContext(javax.faces.context.FacesContext facesContext)
Allows to wrap the given FacesContext manually

Parameters:
facesContext - current faces-context
Returns:
the wrapped faces-context, or the given faces-context if it was wrapped already

isActivated

public boolean isActivated()

Specified by:
isActivated in interface Deactivatable


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.