public class WebAppStartupListener extends Object implements javax.faces.event.SystemEventListener
Constructor and Description |
---|
WebAppStartupListener()
Default Constructor with no initialization
|
WebAppStartupListener(Class<? extends FacesConfiguration> facesConfigClass)
Default Constructor with additional configuration
|
Modifier and Type | Method and Description |
---|---|
protected WebApplication |
createWebApplication(javax.faces.context.FacesContext startupContext)
Creates a WebApplication instance
|
protected FacesImplementation |
detectFacesImplementation(javax.faces.context.ExternalContext externalContext)
Detects the JSF Implementation and returns an implmentation handler class.
|
FacesImplementation |
getFacesImplementation() |
protected javax.servlet.ServletContext |
getServletContext(javax.faces.context.FacesContext startupContext) |
protected void |
initFacesConfiguration(javax.faces.context.FacesContext startupContext)
Allows to programmatically extend the faces configuration
|
protected void |
initWebApplication(WebApplication facesApp,
javax.faces.context.FacesContext startupContext)
Initializes a WebApplication instance
|
boolean |
isListenerForSource(Object source) |
void |
processEvent(javax.faces.event.SystemEvent event) |
public WebAppStartupListener()
public WebAppStartupListener(Class<? extends FacesConfiguration> facesConfigClass)
facesConfigClass
- the faces configurationpublic FacesImplementation getFacesImplementation()
protected javax.servlet.ServletContext getServletContext(javax.faces.context.FacesContext startupContext)
public boolean isListenerForSource(Object source)
isListenerForSource
in interface javax.faces.event.SystemEventListener
public void processEvent(javax.faces.event.SystemEvent event) throws javax.faces.event.AbortProcessingException
processEvent
in interface javax.faces.event.SystemEventListener
javax.faces.event.AbortProcessingException
protected FacesImplementation detectFacesImplementation(javax.faces.context.ExternalContext externalContext)
externalContext
- the external contextprotected void initFacesConfiguration(javax.faces.context.FacesContext startupContext)
startupContext
- the Startup Contextprotected WebApplication createWebApplication(javax.faces.context.FacesContext startupContext)
startupContext
- the Startup Contextprotected void initWebApplication(WebApplication facesApp, javax.faces.context.FacesContext startupContext)
facesApp
- the WebApplication instancestartupContext
- the Startup ContextCopyright © 2008–2023 Apache Software Foundation. All rights reserved.