public class WebComponentExporterAwareValidator extends AbstractAnnotationValidator implements VaadinServletContextStartupInitializer
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 |
initialize(Set<Class<?>> classSet,
VaadinContext context)
Applies this initializer to the given context
|
getClassAnnotations, getClassAnnotations, validateClasses
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
process
onStartup, requiresLookup
public void initialize(Set<Class<?>> classSet, VaadinContext context)
VaadinContextStartupInitializer
initialize
in interface VaadinContextStartupInitializer
classSet
- the Set of application classes which this initializer needs to
do its jobcontext
- the VaadinContext
to use with this initializerprotected Optional<String> handleNonRouterLayout(Class<?> clazz)
AbstractAnnotationValidator
clazz
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 AbstractAnnotationValidator
clazz
- class to validate annotationsprotected String getErrorHint()
AbstractAnnotationValidator
getErrorHint
in class AbstractAnnotationValidator
public List<Class<?>> getAnnotations()
AbstractAnnotationValidator
getAnnotations
in class AbstractAnnotationValidator
Copyright © 2021. All rights reserved.