Class JasperInitializer
java.lang.Object
org.apache.jasper.servlet.JasperInitializer
- All Implemented Interfaces:
ServletContainerInitializer
Initializer for the Jasper JSP Engine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TldScannernewTldScanner(ServletContext context, boolean namespaceAware, boolean validate, boolean blockExternal) Create a new TldScanner instance.voidonStartup(Set<Class<?>> types, ServletContext context) Receives notification during startup of a web application of the classes within the web application that matched the criteria defined via theHandlesTypesannotation.
-
Constructor Details
-
JasperInitializer
public JasperInitializer()Constructs a new JasperInitializer.
-
-
Method Details
-
onStartup
Description copied from interface:jakarta.servlet.ServletContainerInitializerReceives notification during startup of a web application of the classes within the web application that matched the criteria defined via theHandlesTypesannotation.- Specified by:
onStartupin interfaceServletContainerInitializer- Parameters:
types- The (possibly null) set of classes that met the specified criteriacontext- The ServletContext of the web application in which the classes were discovered- Throws:
ServletException- If an error occurs
-
newTldScanner
protected TldScanner newTldScanner(ServletContext context, boolean namespaceAware, boolean validate, boolean blockExternal) Create a new TldScanner instance.- Parameters:
context- the servlet contextnamespaceAware- whether to be namespace awarevalidate- whether to validateblockExternal- whether to block external entities- Returns:
- the new TldScanner
-