|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.webapp.AbstractFacesInitializer
public abstract class AbstractFacesInitializer
Performs common initialization tasks.
| Field Summary | |
|---|---|
protected static String |
EXPRESSION_FACTORY
This parameter specifies the ExpressionFactory implementation to use. |
static String |
INIT_PARAM_LOG_WEB_CONTEXT_PARAMS
Indicate 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_STANDALONE
If this param is set to true, the check for faces servlet mapping is not done |
| Constructor Summary | |
|---|---|
AbstractFacesInitializer()
|
|
| Method Summary | |
|---|---|
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 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@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
| Constructor Detail |
|---|
public AbstractFacesInitializer()
| Method Detail |
|---|
public void initFaces(javax.servlet.ServletContext servletContext)
initFaces in interface FacesInitializerpublic void destroyFaces(javax.servlet.ServletContext servletContext)
destroyFaces in interface FacesInitializer
protected RuntimeConfig buildConfiguration(javax.servlet.ServletContext servletContext,
ExternalContext externalContext,
javax.el.ExpressionFactory expressionFactory)
servletContext - the current ServletContextexternalContext - the current ExternalContextexpressionFactory - the ExpressionFactory to use
protected 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 ExternalContext
null, if no no custom implementation was specifiedprotected static javax.el.ExpressionFactory loadExpressionFactory(String expressionFactoryClassName)
expressionFactoryClassName - the class name of the ExpressionFactory implementation
null, 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 FacesInitializer
protected abstract void initContainerIntegration(javax.servlet.ServletContext servletContext,
ExternalContext externalContext)
servletContext - the current ServletContextexternalContext - the current ExternalContext
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||