org.apache.myfaces.cdi.view
Class ApplicationContextBean

java.lang.Object
  extended by 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.


Constructor Summary
ApplicationContextBean()
           
 
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
 

Constructor Detail

ApplicationContextBean

public ApplicationContextBean()
Method Detail

getServletContext

public javax.servlet.ServletContext getServletContext()
Return the servlet context for the current application.


setServletContext

public void setServletContext(javax.servlet.ServletContext servletContext)


Copyright © 2014 The Apache Software Foundation. All rights reserved.