Package com.vaadin.hilla.startup
Class EndpointsValidator
java.lang.Object
com.vaadin.hilla.startup.EndpointsValidator
- All Implemented Interfaces:
ClassLoaderAwareServletContainerInitializer,jakarta.servlet.ServletContainerInitializer,Serializable
public class EndpointsValidator
extends Object
implements ClassLoaderAwareServletContainerInitializer, Serializable
Validation class that is run during servlet container initialization which
checks that application is running with the appropriate spring dependencies
when there are
Endpoint annotations.- Since:
- 3.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidImplement this method instead ofClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)to handle classes accessible by different classloaders.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.server.startup.ClassLoaderAwareServletContainerInitializer
onStartup, requiresLookup
-
Constructor Details
-
EndpointsValidator
public EndpointsValidator()
-
-
Method Details
-
process
public void process(Set<Class<?>> classSet, jakarta.servlet.ServletContext servletContext) throws jakarta.servlet.ServletException Description copied from interface:ClassLoaderAwareServletContainerInitializerImplement this method instead ofClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)to handle classes accessible by different classloaders.- Specified by:
processin interfaceClassLoaderAwareServletContainerInitializer- Parameters:
classSet- the Set of application classes that extend, implement, or have been annotated with the class types specified by theHandlesTypesannotation, ornullif there are no matches, or thisServletContainerInitializerhas not been annotated withHandlesTypesservletContext- theServletContextof the web application that is being started and in which the classes contained inclassSetwere found- Throws:
jakarta.servlet.ServletException- if an error has occurred- See Also:
-