public class WebComponentExporterAwareValidator extends AbstractAnnotationValidator implements javax.servlet.ServletContainerInitializer
The validation is run during servlet container initialization.
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 |
onStartup(Set<Class<?>> classSet,
javax.servlet.ServletContext servletContext) |
getClassAnnotations, validateClassespublic void onStartup(Set<Class<?>> classSet, javax.servlet.ServletContext servletContext) throws javax.servlet.ServletException
onStartup in interface javax.servlet.ServletContainerInitializerjavax.servlet.ServletExceptionprotected 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 © 2000–2019 Vaadin Ltd. All rights reserved.