Package com.vaadin.flow.server.startup
Class VaadinAppShellInitializer
- java.lang.Object
-
- com.vaadin.flow.server.startup.VaadinAppShellInitializer
-
- All Implemented Interfaces:
ClassLoaderAwareServletContainerInitializer,VaadinContextStartupInitializer,VaadinServletContextStartupInitializer,Serializable,EventListener,javax.servlet.ServletContainerInitializer,javax.servlet.ServletContextListener
@WebListener public class VaadinAppShellInitializer extends Object implements VaadinServletContextStartupInitializer, javax.servlet.ServletContextListener, Serializable
Servlet initializer visitingAppShellConfiguratorconfiguration.For internal use only. May be renamed or removed in a future release.
- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VaadinAppShellInitializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcontextDestroyed(javax.servlet.ServletContextEvent sce)voidcontextInitialized(javax.servlet.ServletContextEvent sce)static List<Class<? extends Annotation>>getValidAnnotations()Return the list of annotations handled by this class.static List<Class<?>>getValidSupers()Return the list of super classes handled by this class.static voidinit(Set<Class<?>> classes, VaadinContext context)Initializes theAppShellRegistryfor the application.static voidinit(Set<Class<?>> classes, javax.servlet.ServletContext context)Deprecated.voidinitialize(Set<Class<?>> classes, VaadinContext context)Applies this initializer to the given context-
Methods 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
-
-
-
-
Method Detail
-
initialize
public void initialize(Set<Class<?>> classes, VaadinContext context)
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
@Deprecated public static void init(Set<Class<?>> classes, javax.servlet.ServletContext context)
Deprecated.Initializes theAppShellRegistryfor the application.- Parameters:
classes- a set of classes that matches theHandlesTypesset in this class.context- the servlet context.
-
init
public static void init(Set<Class<?>> classes, VaadinContext context)
Initializes theAppShellRegistryfor the application.- Parameters:
classes- a set of classes that matches theHandlesTypesset in this class.context- theVaadinContext.
-
getValidAnnotations
public static List<Class<? extends Annotation>> 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
public static List<Class<?>> 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(javax.servlet.ServletContextEvent sce)
- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
-
-