Package com.vaadin.flow.server.startup
Class VaadinAppShellInitializer
java.lang.Object
com.vaadin.flow.server.startup.VaadinAppShellInitializer
- All Implemented Interfaces:
ClassLoaderAwareServletContainerInitializer,VaadinContextStartupInitializer,VaadinServletContextStartupInitializer,jakarta.servlet.ServletContainerInitializer,jakarta.servlet.ServletContextListener,Serializable,EventListener
@WebListener
public class VaadinAppShellInitializer
extends Object
implements VaadinServletContextStartupInitializer, jakarta.servlet.ServletContextListener, Serializable
Servlet initializer visiting
AppShellConfigurator configuration.
For internal use only. May be renamed or removed in a future release.
- Since:
- 3.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(jakarta.servlet.ServletContextEvent sce) voidcontextInitialized(jakarta.servlet.ServletContextEvent sce) static List<Class<? extends Annotation>>Return the list of annotations handled by this class.Return the list of super classes handled by this class.static voidinit(Set<Class<?>> classes, VaadinContext context) Initializes theAppShellRegistryfor the application.voidinitialize(Set<Class<?>> classes, VaadinContext context) Applies this initializer to the given contextMethods 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
-
VaadinAppShellInitializer
public VaadinAppShellInitializer()
-
-
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
-
init
Initializes theAppShellRegistryfor the application.- Parameters:
classes- a set of classes that matches theHandlesTypesset in this class.context- theVaadinContext.
-
getValidAnnotations
Return the list of annotations handled by this class. This method is thought to be called from external plugins (e.g. Vaadin Spring) that would need to override the@HandlesTypes-based classpath scanning.- Returns:
- list of annotations handled by
init(Set, VaadinContext)
-
getValidSupers
Return the list of super classes handled by this class. This method is thought to be called from external plugins (e.g. Vaadin Spring) that would need to override the@HandlesTypes-based classpath scanning.- Returns:
- list of super classes handled by
init(Set, VaadinContext)
-
contextInitialized
public void contextInitialized(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextInitializedin interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextDestroyedin interfacejakarta.servlet.ServletContextListener
-