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 visiting
AppShellConfigurator
configuration.For internal use only. May be renamed or removed in a future release.
Since:
3.0
See Also:
-
-
Constructor Summary
Constructors Constructor Description VaadinAppShellInitializer()
-
Method Summary
All Methods Modifier and Type Method Description void
contextDestroyed(javax.servlet.ServletContextEvent sce)
void
contextInitialized(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 void
init(Set<Class<?>> classes, VaadinContext context)
Initializes the
AppShellRegistry
for the application.static void
init(Set<Class<?>> classes, javax.servlet.ServletContext context)
Deprecated.
void
initialize(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:
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
@Deprecated public static void init(Set<Class<?>> classes, javax.servlet.ServletContext context)
Deprecated.Initializes the
AppShellRegistry
for the application.Parameters:
classes
- a set of classes that matches theHandlesTypes
set in this class.context
- the servlet context.
-
init
public static void init(Set<Class<?>> classes, VaadinContext context)
Initializes the
AppShellRegistry
for the application.Parameters:
classes
- a set of classes that matches theHandlesTypes
set 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:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
-