Top Description Fields Constructors Methods
com.sun.faces.config

public Class FacesInitializer

extends Object
implements ServletContainerInitializer
Class Inheritance
All Implemented Interfaces
javax.servlet.ServletContainerInitializer
Annotations
@HandlesTypes:Converter, Endpoint, FaceletsResourceResolver, FacesBehavior, FacesBehaviorRenderer, FacesComponent, FacesConverter, FacesConfig, FacesValidator, ListenerFor, ListenersFor, ManagedBean, NamedEvent, PhaseListener, Renderer, Resource, ResourceDependencies, ResourceDependency, ServerApplicationConfig, ServerEndpoint, UIComponent, Validator
Static Imports
com.sun.faces.RIConstants.ANNOTATED_CLASSES, .RIConstants.FACES_INITIALIZER_MAPPINGS_ADDED, com.sun.faces.util.Util.isEmpty, java.lang.Boolean.TRUE

Adds mappings *.xhtml, /faces, *.jsf, and *.faces for the FacesServlet (if it hasn't already been mapped) if the following conditions are met:

Field Summary

Modifier and TypeField and Description
private static final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private boolean
private ServletRegistration
private void
private void
private boolean
public void
onStartup(Set<Class<?>>
the Set of application classes that extend, implement, or have been annotated with the class types specified by the HandlesTypes annotation, or null if there are no matches, or this ServletContainerInitializer has not been annotated with HandlesTypes
classes
,
ServletContext
the ServletContext of the web application that is being started and in which the classes contained in c were found
servletContext
)

Implements javax.servlet.ServletContainerInitializer.onStartup.

Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FACES_SERVLET_CLASSback to summary
private static final String FACES_SERVLET_CLASS

Constructor Detail

FacesInitializerback to summary
public FacesInitializer()

Method Detail

appMayHaveSomeJsfContentback to summary
private boolean appMayHaveSomeJsfContent(Set<Class<?>> classes, ServletContext context)
getExistingFacesServletRegistrationback to summary
private ServletRegistration getExistingFacesServletRegistration(ServletContext servletContext)
handleMappingConcernsback to summary
private void handleMappingConcerns(ServletContext servletContext) throws ServletException
handleWebSocketConcernsback to summary
private void handleWebSocketConcerns(ServletContext ctx) throws ServletException
isADFApplicationback to summary
private boolean isADFApplication()
onStartupback to summary
public void onStartup(Set<Class<?>> classes, ServletContext servletContext) throws ServletException

Implements javax.servlet.ServletContainerInitializer.onStartup.

Doc from javax.servlet.ServletContainerInitializer.onStartup.

Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext.

If this ServletContainerInitializer is bundled in a JAR file inside the WEB-INF/lib directory of an application, its onStartup method will be invoked only once during the startup of the bundling application. If this ServletContainerInitializer is bundled inside a JAR file outside of any WEB-INF/lib directory, but still discoverable as described above, its onStartup method will be invoked every time an application is started.

Parameters
classes:Set<Class<?>>

the Set of application classes that extend, implement, or have been annotated with the class types specified by the HandlesTypes annotation, or null if there are no matches, or this ServletContainerInitializer has not been annotated with HandlesTypes

servletContext:ServletContext

the ServletContext of the web application that is being started and in which the classes contained in c were found

Annotations
@Override
Exceptions
ServletException:
if an error has occurred