public class VaadinAppShellInitializer extends Object implements ClassLoaderAwareServletContainerInitializer, Serializable
AppShellConfigurator
configuration.Constructor and Description |
---|
VaadinAppShellInitializer() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(ServletContextEvent sce) |
void |
contextInitialized(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,
ServletContext context,
DeploymentConfiguration config)
Initializes the
AppShellRegistry for the application. |
void |
process(Set<Class<?>> classes,
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, ServletContext context) throws 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 foundServletException
- if an error has occurredClassLoaderAwareServletContainerInitializer.onStartup(Set, ServletContext)
public static void init(Set<Class<?>> classes, 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(ServletContextEvent sce)
public void contextDestroyed(ServletContextEvent sce)
Copyright © 2020. All rights reserved.