Package org.apache.myfaces.webapp
Class JspFacesInitializer
- java.lang.Object
-
- org.apache.myfaces.webapp.AbstractFacesInitializer
-
- org.apache.myfaces.webapp.JspFacesInitializer
-
- All Implemented Interfaces:
FacesInitializer
public class JspFacesInitializer extends AbstractFacesInitializer
Initializes MyFaces in a JSP 2.1 environment.
-
-
Field Summary
-
Fields inherited from class org.apache.myfaces.webapp.AbstractFacesInitializer
CDI_BEAN_MANAGER_INSTANCE, INJECTED_BEAN_STORAGE_KEY
-
-
Constructor Summary
Constructors Constructor Description JspFacesInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ELResolverBuilder
createResolverBuilderForJSP(RuntimeConfig runtimeConfig, MyfacesConfig myfacesConfig)
protected javax.servlet.jsp.JspFactory
getJspFactory()
protected void
initContainerIntegration(javax.servlet.ServletContext servletContext, ExternalContext externalContext)
Performs initialization tasks depending on the current environment.protected void
setJspFactory(javax.servlet.jsp.JspFactory jspFactory)
Sets the JspFactory to use.-
Methods inherited from class org.apache.myfaces.webapp.AbstractFacesInitializer
_callPreDestroyOnInjectedJSFArtifacts, buildConfiguration, cleanupAfterStartup, destroyFaces, destroyShutdownFacesContext, destroyStartupFacesContext, getUserDefinedExpressionFactory, initAutomaticExtensionlessMapping, initCDIIntegration, initFaces, initShutdownFacesContext, initStartupFacesContext, initWebsocketIntegration, loadExpressionFactory, loadExpressionFactory, validateFacesConfig
-
-
-
-
Method Detail
-
initContainerIntegration
protected void initContainerIntegration(javax.servlet.ServletContext servletContext, ExternalContext externalContext)
Description copied from class:AbstractFacesInitializer
Performs initialization tasks depending on the current environment.- Specified by:
initContainerIntegration
in classAbstractFacesInitializer
- Parameters:
servletContext
- the current ServletContextexternalContext
- the current ExternalContext
-
getJspFactory
protected javax.servlet.jsp.JspFactory getJspFactory()
-
setJspFactory
protected void setJspFactory(javax.servlet.jsp.JspFactory jspFactory)
Sets the JspFactory to use. Currently, this method just simplifies testing.- Parameters:
jspFactory
- the JspFactory to use
-
createResolverBuilderForJSP
protected ELResolverBuilder createResolverBuilderForJSP(RuntimeConfig runtimeConfig, MyfacesConfig myfacesConfig)
-
-