java.lang.Object
com.sun.faces.config.FacesInitializer2
- All Implemented Interfaces:
ServletContainerInitializer
Extra ServletContainerInitializer that picks up the Resource.class annotation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onStartup
(Set<Class<?>> classes, ServletContext servletContext) Notifies this ServletContainerInitializer of the startup of the application represented by the given ServletContext.
-
Constructor Details
-
FacesInitializer2
public FacesInitializer2()
-
-
Method Details
-
onStartup
Description copied from interface:ServletContainerInitializer
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.
- Specified by:
onStartup
in interfaceServletContainerInitializer
- Parameters:
classes
- the Set of application classes that extend, implement, or have been annotated with the class types specified by theHandlesTypes
annotation, or null if there are no matches, or this ServletContainerInitializer has not been annotated with HandlesTypesservletContext
- the ServletContext of the web application that is being started and in which the classes contained in c were found- Throws:
ServletException
- if an error has occurred
-