com.sun.faces.config
public class ConfigureListener extends java.lang.Object implements javax.servlet.ServletRequestListener, javax.servlet.http.HttpSessionListener, javax.servlet.ServletRequestAttributeListener, javax.servlet.http.HttpSessionAttributeListener, javax.servlet.ServletContextAttributeListener, javax.servlet.ServletContextListener
Parse all relevant JavaServer Faces configuration resources, and configure the Reference Implementation runtime environment.
Modifier and Type | Class and Description |
---|---|
private class |
ConfigureListener.WebConfigResourceMonitor |
private static class |
ConfigureListener.WebXmlProcessor
Processes a web application's deployment descriptor looking
for a reference to
javax.faces.webapp.FacesServlet . |
Modifier and Type | Field and Description |
---|---|
private static java.util.logging.Logger |
LOGGER |
protected WebappLifecycleListener |
webAppListener |
protected WebConfiguration |
webConfig |
private java.util.concurrent.ScheduledThreadPoolExecutor |
webResourcePool |
Constructor and Description |
---|
ConfigureListener() |
Modifier and Type | Method and Description |
---|---|
void |
attributeAdded(javax.servlet.http.HttpSessionBindingEvent event) |
void |
attributeAdded(javax.servlet.ServletContextAttributeEvent event) |
void |
attributeAdded(javax.servlet.ServletRequestAttributeEvent event) |
void |
attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event) |
void |
attributeRemoved(javax.servlet.ServletContextAttributeEvent event) |
void |
attributeRemoved(javax.servlet.ServletRequestAttributeEvent event) |
void |
attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event) |
void |
attributeReplaced(javax.servlet.ServletContextAttributeEvent event) |
void |
attributeReplaced(javax.servlet.ServletRequestAttributeEvent event) |
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent sce) |
private InitFacesContext |
getInitFacesContext(javax.servlet.ServletContext context) |
private static java.lang.String |
getServletContextIdentifier(javax.servlet.ServletContext context) |
private void |
initConfigMonitoring(javax.servlet.ServletContext context) |
private void |
initScripting() |
private boolean |
installExpressionFactory(javax.servlet.ServletContext sc,
java.lang.String elFactoryType) |
private boolean |
isDevModeEnabled() |
private static boolean |
isJspTwoOne(javax.servlet.ServletContext context) |
void |
registerELResolverAndListenerWithJsp(javax.servlet.ServletContext context,
boolean reloaded) |
private void |
reload(javax.servlet.ServletContext sc)
This method will be invoked
ConfigureListener.WebConfigResourceMonitor when
changes to any of the faces-config.xml files included in WEB-INF
are modified. |
void |
requestDestroyed(javax.servlet.ServletRequestEvent event) |
void |
requestInitialized(javax.servlet.ServletRequestEvent event) |
void |
sessionCreated(javax.servlet.http.HttpSessionEvent event) |
void |
sessionDestroyed(javax.servlet.http.HttpSessionEvent event) |
private boolean |
shouldInitConfigMonitoring() |
private static final java.util.logging.Logger LOGGER
private java.util.concurrent.ScheduledThreadPoolExecutor webResourcePool
protected WebappLifecycleListener webAppListener
protected WebConfiguration webConfig
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed
in interface javax.servlet.ServletContextListener
public void requestDestroyed(javax.servlet.ServletRequestEvent event)
requestDestroyed
in interface javax.servlet.ServletRequestListener
public void requestInitialized(javax.servlet.ServletRequestEvent event)
requestInitialized
in interface javax.servlet.ServletRequestListener
public void sessionCreated(javax.servlet.http.HttpSessionEvent event)
sessionCreated
in interface javax.servlet.http.HttpSessionListener
public void sessionDestroyed(javax.servlet.http.HttpSessionEvent event)
sessionDestroyed
in interface javax.servlet.http.HttpSessionListener
public void attributeAdded(javax.servlet.ServletRequestAttributeEvent event)
attributeAdded
in interface javax.servlet.ServletRequestAttributeListener
public void attributeRemoved(javax.servlet.ServletRequestAttributeEvent event)
attributeRemoved
in interface javax.servlet.ServletRequestAttributeListener
public void attributeReplaced(javax.servlet.ServletRequestAttributeEvent event)
attributeReplaced
in interface javax.servlet.ServletRequestAttributeListener
public void attributeAdded(javax.servlet.http.HttpSessionBindingEvent event)
attributeAdded
in interface javax.servlet.http.HttpSessionAttributeListener
public void attributeRemoved(javax.servlet.http.HttpSessionBindingEvent event)
attributeRemoved
in interface javax.servlet.http.HttpSessionAttributeListener
public void attributeReplaced(javax.servlet.http.HttpSessionBindingEvent event)
attributeReplaced
in interface javax.servlet.http.HttpSessionAttributeListener
public void attributeAdded(javax.servlet.ServletContextAttributeEvent event)
attributeAdded
in interface javax.servlet.ServletContextAttributeListener
public void attributeRemoved(javax.servlet.ServletContextAttributeEvent event)
attributeRemoved
in interface javax.servlet.ServletContextAttributeListener
public void attributeReplaced(javax.servlet.ServletContextAttributeEvent event)
attributeReplaced
in interface javax.servlet.ServletContextAttributeListener
private boolean shouldInitConfigMonitoring()
private void initConfigMonitoring(javax.servlet.ServletContext context)
private void initScripting()
private boolean isDevModeEnabled()
private void reload(javax.servlet.ServletContext sc)
ConfigureListener.WebConfigResourceMonitor
when
changes to any of the faces-config.xml files included in WEB-INF
are modified.private static java.lang.String getServletContextIdentifier(javax.servlet.ServletContext context)
private static boolean isJspTwoOne(javax.servlet.ServletContext context)
public void registerELResolverAndListenerWithJsp(javax.servlet.ServletContext context, boolean reloaded)
private boolean installExpressionFactory(javax.servlet.ServletContext sc, java.lang.String elFactoryType)
private InitFacesContext getInitFacesContext(javax.servlet.ServletContext context)
Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.