info.magnolia.module.blossom.module
Class BlossomModuleSupport

java.lang.Object
  extended by info.magnolia.module.blossom.module.BlossomModuleSupport

public class BlossomModuleSupport
extends Object

Intended to be used as a base class for Magnolia modules that use Blossom. Provides support for initializing the root WebApplicationContext and DispatcherServlets. Initializing them like this makes them participate properly at module install time. Servlets apart from BlossomDispatcherServlet should be configured in your module's definition file with their url mappings.

Since:
1.1

Constructor Summary
BlossomModuleSupport()
           
 
Method Summary
 void closeRootWebApplicationContext()
           
 void destroyDispatcherServlets()
           
 List<org.springframework.web.servlet.DispatcherServlet> getDispatcherServlets()
           
 javax.servlet.ServletContext getServletContext()
           
 void initBlossomDispatcherServlet(String servletName, String configLocation)
           
 void initDispatcherServlet(org.springframework.web.servlet.DispatcherServlet dispatcherServlet, String servletName, String configLocation)
           
 void initDispatcherServlet(String servletName, String configLocation)
           
 void initRootWebApplicationContext(org.springframework.web.context.ContextLoader contextLoader)
           
 void initRootWebApplicationContext(String configLocation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlossomModuleSupport

public BlossomModuleSupport()
Method Detail

initRootWebApplicationContext

public void initRootWebApplicationContext(String configLocation)

initRootWebApplicationContext

public void initRootWebApplicationContext(org.springframework.web.context.ContextLoader contextLoader)

closeRootWebApplicationContext

public void closeRootWebApplicationContext()

initBlossomDispatcherServlet

public void initBlossomDispatcherServlet(String servletName,
                                         String configLocation)

initDispatcherServlet

public void initDispatcherServlet(String servletName,
                                  String configLocation)

initDispatcherServlet

public void initDispatcherServlet(org.springframework.web.servlet.DispatcherServlet dispatcherServlet,
                                  String servletName,
                                  String configLocation)

destroyDispatcherServlets

public void destroyDispatcherServlets()

getDispatcherServlets

public List<org.springframework.web.servlet.DispatcherServlet> getDispatcherServlets()

getServletContext

public javax.servlet.ServletContext getServletContext()


Copyright © 2009-2012 Magnolia International Ltd.. All Rights Reserved.