Package com.vaadin.flow.server.startup
Class AnnotationValidator
java.lang.Object
com.vaadin.flow.server.startup.AbstractAnnotationValidator
com.vaadin.flow.server.startup.AnnotationValidator
- All Implemented Interfaces:
ClassLoaderAwareServletContainerInitializer,VaadinContextStartupInitializer,VaadinServletContextStartupInitializer,jakarta.servlet.ServletContainerInitializer,Serializable
public class AnnotationValidator
extends AbstractAnnotationValidator
implements VaadinServletContextStartupInitializer
Validation class that is run during servlet container initialization which
checks that specific annotations are not configured wrong.
For internal use only. May be renamed or removed in a future release.
- Since:
- 1.0
- See Also:
-
Field Summary
Fields inherited from class com.vaadin.flow.server.startup.AbstractAnnotationValidator
ERROR_MESSAGE_BEGINNING, MIDDLE_ROUTER_LAYOUT, NON_PARENT, NON_PARENT_ALIAS, NON_ROUTER_LAYOUT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the annotations that are subject to validate.voidinitialize(Set<Class<?>> classes, VaadinContext context) Applies this initializer to the given contextMethods inherited from class com.vaadin.flow.server.startup.AbstractAnnotationValidator
getClassAnnotations, getClassAnnotations, getErrorHint, handleNonRouterLayout, removeHandleTypesSelfReferences, validateClassesMethods 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, requiresLookupMethods inherited from interface com.vaadin.flow.server.startup.VaadinServletContextStartupInitializer
process
-
Constructor Details
-
AnnotationValidator
public AnnotationValidator()
-
-
Method Details
-
initialize
Description copied from interface:VaadinContextStartupInitializerApplies this initializer to the given context- Specified by:
initializein interfaceVaadinContextStartupInitializer- Parameters:
classes- the Set of application classes which this initializer needs to do its jobcontext- theVaadinContextto use with this initializer
-
getAnnotations
Description copied from class:AbstractAnnotationValidatorGets the annotations that are subject to validate.- Specified by:
getAnnotationsin classAbstractAnnotationValidator- Returns:
- a list of target annotations
-