@WebListener public class VaadinAppShellInitializer extends Object implements ClassLoaderAwareServletContainerInitializer, javax.servlet.ServletContextListener, Serializable
AppShellConfigurator
configuration.Constructor and Description |
---|
VaadinAppShellInitializer() |
Modifier and Type | Method and 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,
javax.servlet.ServletContext context,
DeploymentConfiguration config)
Initializes the
AppShellRegistry for the application. |
void |
process(Set<Class<?>> classes,
javax.servlet.ServletContext context)
Implement this method instead of
ClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
to handle classes accessible by different classloaders. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onStartup
public void process(Set<Class<?>> classes, javax.servlet.ServletContext context) throws javax.servlet.ServletException
ClassLoaderAwareServletContainerInitializer
ClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
to handle classes accessible by different classloaders.process
in interface ClassLoaderAwareServletContainerInitializer
classes
- the Set of application classes that extend, implement, or have
been annotated with the class types specified by the
HandlesTypes
annotation, or null if there are no matches, or this
ServletContainerInitializer has not been annotated
with HandlesTypescontext
- the ServletContext of the web application that is
being started and in which the classes contained in c
were foundjavax.servlet.ServletException
- if an error has occurredClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
public static void init(Set<Class<?>> classes, javax.servlet.ServletContext context, DeploymentConfiguration config)
AppShellRegistry
for the application.classes
- a set of classes that matches the HandlesTypes
set in
this class.context
- the servlet context.config
- the vaadin configuration for the application.public static List<Class<? extends Annotation>> getValidAnnotations()
@HandlesTypes
-based classpath
scanning.init(Set, ServletContext, DeploymentConfiguration)
public static List<Class<?>> getValidSupers()
@HandlesTypes
-based classpath
scanning.init(Set, ServletContext, DeploymentConfiguration)
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © 2000–2020 Vaadin Ltd. All rights reserved.