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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextDestroyed
(jakarta.servlet.ServletContextEvent sce) void
contextInitialized
(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 void
init
(Set<Class<?>> classes, VaadinContext context) Initializes theAppShellRegistry
for the application.void
initialize
(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, wait
Methods inherited from interface com.vaadin.flow.server.startup.ClassLoaderAwareServletContainerInitializer
onStartup, requiresLookup
Methods inherited from interface com.vaadin.flow.server.startup.VaadinServletContextStartupInitializer
process
-
Constructor Details
-
VaadinAppShellInitializer
public VaadinAppShellInitializer()
-
-
Method Details
-
initialize
Description copied from interface:VaadinContextStartupInitializer
Applies this initializer to the given context- Specified by:
initialize
in interfaceVaadinContextStartupInitializer
- Parameters:
classes
- the Set of application classes which this initializer needs to do its jobcontext
- theVaadinContext
to use with this initializer
-
init
Initializes theAppShellRegistry
for the application.- Parameters:
classes
- a set of classes that matches theHandlesTypes
set 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:
contextInitialized
in interfacejakarta.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(jakarta.servlet.ServletContextEvent sce) - Specified by:
contextDestroyed
in interfacejakarta.servlet.ServletContextListener
-