public class WebComponentExporterAwareValidator extends AbstractAnnotationValidator implements ClassLoaderAwareServletContainerInitializer
The validation is run during servlet container initialization.
For internal use only. May be renamed or removed in a future release.
ERROR_MESSAGE_BEGINNING, MIDDLE_ROUTER_LAYOUT, NON_PARENT, NON_PARENT_ALIAS, NON_ROUTER_LAYOUT| Constructor and Description |
|---|
WebComponentExporterAwareValidator() |
| Modifier and Type | Method and Description |
|---|---|
List<Class<?>> |
getAnnotations()
Gets the annotations that are subject to validate.
|
protected String |
getErrorHint()
Returns a hint for the discovered validation errors.
|
protected Optional<String> |
handleNonRouterLayout(Class<?> clazz)
Handles the
clazz which is not a top level route and not a router
layout. |
void |
process(Set<Class<?>> classSet,
ServletContext servletContext)
Implement this method instead of
ClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
to handle classes accessible by different classloaders. |
getClassAnnotations, validateClassesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitonStartup, requiresLookuppublic void process(Set<Class<?>> classSet, ServletContext servletContext) throws ServletException
ClassLoaderAwareServletContainerInitializerClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
to handle classes accessible by different classloaders.process in interface ClassLoaderAwareServletContainerInitializerclassSet - 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 HandlesTypesservletContext - the ServletContext of the web application that is
being started and in which the classes contained in c
were foundServletException - if an error has occurredClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)protected Optional<String> handleNonRouterLayout(Class<?> clazz)
AbstractAnnotationValidatorclazz which is not a top level route and not a router
layout. Returns an optional message which describes the error having an
annotation for the class.handleNonRouterLayout in class AbstractAnnotationValidatorclazz - class to validate annotationsprotected String getErrorHint()
AbstractAnnotationValidatorgetErrorHint in class AbstractAnnotationValidatorpublic List<Class<?>> getAnnotations()
AbstractAnnotationValidatorgetAnnotations in class AbstractAnnotationValidatorCopyright © 2025. All rights reserved.