org.apache.myfaces.cdi.view
Class ApplicationContextBean
java.lang.Object
org.apache.myfaces.cdi.view.ApplicationContextBean
@ApplicationScoped
public class ApplicationContextBean
- extends Object
This bean is used to store the ServletContext, so CDI beans can get it later. This is
used to ensure a valid FacesContext instance is passed when the bean is destroyed.
Method Summary |
javax.servlet.ServletContext |
getServletContext()
Return the servlet context for the current application. |
void |
setServletContext(javax.servlet.ServletContext servletContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationContextBean
public ApplicationContextBean()
getServletContext
public javax.servlet.ServletContext getServletContext()
- Return the servlet context for the current application.
setServletContext
public void setServletContext(javax.servlet.ServletContext servletContext)
Copyright © 2015 The Apache Software Foundation. All rights reserved.