public class BlossomModuleSupport extends Object
BlossomDispatcherServlet
should be configured
in your module's definition file along with their url mappings.Constructor and Description |
---|
BlossomModuleSupport() |
Modifier and Type | Method and Description |
---|---|
protected String[] |
classNamesToArray(Class<?>... classes) |
protected String |
classNamesToString(Class<?>... classes) |
void |
closeRootWebApplicationContext()
Closes the root web application context.
|
void |
destroyDispatcherServlets()
Destroys all previously initialized dispatcher servlets, including BlossomDispatcherServlets.
|
List<org.springframework.web.servlet.DispatcherServlet> |
getDispatcherServlets() |
javax.servlet.ServletContext |
getServletContext() |
void |
initBlossomDispatcherServlet(String servletName,
Class<?>... configurationClasses)
Creates and initializes a
BlossomDispatcherServlet using the provided configuration classes. |
void |
initBlossomDispatcherServlet(String servletName,
String configLocation)
Creates and initializes a
BlossomDispatcherServlet using the provided configLocation. |
void |
initDispatcherServlet(org.springframework.web.servlet.DispatcherServlet dispatcherServlet,
String servletName,
String configLocation)
Initializes a
DispatcherServlet using the provided configuration classes. |
void |
initDispatcherServlet(String servletName,
Class<?>... configClasses)
Creates and initializes a
DispatcherServlet using the provided configuration classes. |
void |
initDispatcherServlet(String servletName,
String configLocation)
Creates and initializes a
DispatcherServlet using the provided configLocation. |
void |
initRootWebApplicationContext(Class<?>... configClasses)
Creates and initializes a root web application context using the provided configuration classes.
|
void |
initRootWebApplicationContext(org.springframework.web.context.ContextLoader contextLoader)
Creates and initializes a root web application context using the provided
ContextLoader . |
void |
initRootWebApplicationContext(String configLocation)
Creates and initializes a root web application context using the provided configLocation.
|
public void initRootWebApplicationContext(String configLocation)
XmlWebApplicationContext
.public void initRootWebApplicationContext(Class<?>... configClasses)
AnnotationConfigWebApplicationContext
.public void initRootWebApplicationContext(org.springframework.web.context.ContextLoader contextLoader)
ContextLoader
.public void closeRootWebApplicationContext()
public void initBlossomDispatcherServlet(String servletName, String configLocation)
BlossomDispatcherServlet
using the provided configLocation. Its internal web
application context is a XmlWebApplicationContext
.public void initBlossomDispatcherServlet(String servletName, Class<?>... configurationClasses)
BlossomDispatcherServlet
using the provided configuration classes. Its internal web
application context is a AnnotationConfigWebApplicationContext
.public void initDispatcherServlet(String servletName, String configLocation)
DispatcherServlet
using the provided configLocation. Its internal web
application context is a XmlWebApplicationContext
.public void initDispatcherServlet(String servletName, Class<?>... configClasses)
DispatcherServlet
using the provided configuration classes. Its internal web
application context is a AnnotationConfigWebApplicationContext
.public void initDispatcherServlet(org.springframework.web.servlet.DispatcherServlet dispatcherServlet, String servletName, String configLocation)
DispatcherServlet
using the provided configuration classes. Its internal web
application context is by default a XmlWebApplicationContext
.public void destroyDispatcherServlets()
public List<org.springframework.web.servlet.DispatcherServlet> getDispatcherServlets()
public javax.servlet.ServletContext getServletContext()
Copyright © 2009–2015 Magnolia International Ltd.. All rights reserved.