org.apache.myfaces.extensions.cdi.jsf.impl.util
Class FacesInformationProducer
java.lang.Object
org.apache.myfaces.extensions.cdi.jsf.impl.util.FacesInformationProducer
@RequestScoped
public class FacesInformationProducer
- extends Object
- Author:
- Gerhard Petracek
Method Summary |
protected javax.faces.context.FacesContext |
currentFacesContext()
Using a request scoped proxy ensures a serializable proxy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FacesInformationProducer
protected FacesInformationProducer()
currentFacesContext
@Produces
@RequestScoped
protected javax.faces.context.FacesContext currentFacesContext()
- Using a request scoped proxy ensures a serializable proxy.
Using a proxy instead of a custom wrapper allows upward compatibility.
The disadvantage is the lower performance (due to the generated proxy.
- Returns:
- current faces-context
Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.