org.apache.myfaces.extensions.cdi.jsf.impl.listener.request
Class CodiFacesContextFactory
java.lang.Object
javax.faces.context.FacesContextFactory
org.apache.myfaces.extensions.cdi.jsf.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 |
Methods inherited from class javax.faces.context.FacesContextFactory |
getWrapped |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CodiFacesContextFactory
public CodiFacesContextFactory(javax.faces.context.FacesContextFactory wrappedFacesContextFactory)
- Constructor for wrapping the given
FacesContextFactory
- Parameters:
wrappedFacesContextFactory
- wrapped faces-context-factory which should be used
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
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.