public abstract class AbstractFacesInitializer extends Object implements FacesInitializer
| Modifier and Type | Field and Description | 
|---|---|
| static String | CDI_BEAN_MANAGER_INSTANCE | 
| protected static String | EXPRESSION_FACTORYThis parameter specifies the ExpressionFactory implementation to use. | 
| static String | INIT_PARAM_LOG_WEB_CONTEXT_PARAMSIndicate if log all web config params should be done before initialize the webapp. | 
| static String | INIT_PARAM_LOG_WEB_CONTEXT_PARAMS_DEFAULT | 
| protected static String | INITIALIZE_ALWAYS_STANDALONEIf this param is set to true, the check for faces servlet mapping is not done | 
| Constructor and Description | 
|---|
| AbstractFacesInitializer() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | _callPreDestroyOnInjectedJSFArtifacts(FacesContext facesContext) | 
| protected RuntimeConfig | buildConfiguration(javax.servlet.ServletContext servletContext,
                  ExternalContext externalContext,
                  javax.el.ExpressionFactory expressionFactory)Configures this JSF application. | 
| void | destroyFaces(javax.servlet.ServletContext servletContext)Cleans up all remaining resources (well, theoretically). | 
| void | destroyShutdownFacesContext(FacesContext facesContext) | 
| void | destroyStartupFacesContext(FacesContext facesContext) | 
| protected static javax.el.ExpressionFactory | getUserDefinedExpressionFactory(ExternalContext externalContext)Try to load user-definied ExpressionFactory. | 
| protected void | initCDIIntegration(javax.servlet.ServletContext servletContext,
                  ExternalContext externalContext)The intention of this method is provide a point where CDI integration is done. | 
| protected abstract void | initContainerIntegration(javax.servlet.ServletContext servletContext,
                        ExternalContext externalContext)Performs initialization tasks depending on the current environment. | 
| void | initFaces(javax.servlet.ServletContext servletContext)Performs all necessary initialization tasks like configuring this JSF
 application. | 
| FacesContext | initShutdownFacesContext(javax.servlet.ServletContext servletContext) | 
| FacesContext | initStartupFacesContext(javax.servlet.ServletContext servletContext) | 
| protected static javax.el.ExpressionFactory | loadExpressionFactory(String expressionFactoryClassName)Loads and instantiates the given ExpressionFactory implementation. | 
| protected void | validateFacesConfig(javax.servlet.ServletContext servletContext,
                   ExternalContext externalContext) | 
@JSFWebConfigParam(since="1.2.7",
                   group="EL")
protected static final String EXPRESSION_FACTORY
@JSFWebConfigParam(since="2.0.3",
                   defaultValue="false")
protected static final String INITIALIZE_ALWAYS_STANDALONE
@JSFWebConfigParam(expectedValues="true, auto, false",
                   defaultValue="auto")
public static final String INIT_PARAM_LOG_WEB_CONTEXT_PARAMS
If is set in "auto" mode, web config params are only logged on "Development" and "Production" project stages.
public static final String INIT_PARAM_LOG_WEB_CONTEXT_PARAMS_DEFAULT
public static final String CDI_BEAN_MANAGER_INSTANCE
public void initFaces(javax.servlet.ServletContext servletContext)
initFaces in interface FacesInitializerpublic void destroyFaces(javax.servlet.ServletContext servletContext)
destroyFaces in interface FacesInitializerprotected RuntimeConfig buildConfiguration(javax.servlet.ServletContext servletContext, ExternalContext externalContext, javax.el.ExpressionFactory expressionFactory)
servletContext - the current ServletContextexternalContext - the current ExternalContextexpressionFactory - the ExpressionFactory to useprotected void validateFacesConfig(javax.servlet.ServletContext servletContext,
                                   ExternalContext externalContext)
protected static javax.el.ExpressionFactory getUserDefinedExpressionFactory(ExternalContext externalContext)
null,
 if no custom ExpressionFactory was specified.externalContext - the current ExternalContextnull, if no no custom implementation was specifiedprotected static javax.el.ExpressionFactory loadExpressionFactory(String expressionFactoryClassName)
expressionFactoryClassName - the class name of the ExpressionFactory implementationnull, if an error occurredpublic FacesContext initStartupFacesContext(javax.servlet.ServletContext servletContext)
initStartupFacesContext in interface FacesInitializerpublic void destroyStartupFacesContext(FacesContext facesContext)
destroyStartupFacesContext in interface FacesInitializerpublic FacesContext initShutdownFacesContext(javax.servlet.ServletContext servletContext)
initShutdownFacesContext in interface FacesInitializerpublic void destroyShutdownFacesContext(FacesContext facesContext)
destroyShutdownFacesContext in interface FacesInitializerprotected abstract void initContainerIntegration(javax.servlet.ServletContext servletContext,
                                                 ExternalContext externalContext)
servletContext - the current ServletContextexternalContext - the current ExternalContextprotected void initCDIIntegration(javax.servlet.ServletContext servletContext,
                                  ExternalContext externalContext)
servletContext - externalContext - public void _callPreDestroyOnInjectedJSFArtifacts(FacesContext facesContext)
Copyright © 2021 The Apache Software Foundation. All rights reserved.