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 TypeMethodDescriptionvoid
Implement 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, wait
Methods 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:ClassLoaderAwareServletContainerInitializer
Implement this method instead ofClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
to handle classes accessible by different classloaders.- Specified by:
process
in interfaceClassLoaderAwareServletContainerInitializer
- Parameters:
classSet
- the Set of application classes that extend, implement, or have been annotated with the class types specified by theHandlesTypes
annotation, ornull
if there are no matches, or thisServletContainerInitializer
has not been annotated withHandlesTypes
servletContext
- theServletContext
of the web application that is being started and in which the classes contained inclassSet
were found- Throws:
jakarta.servlet.ServletException
- if an error has occurred- See Also:
-