uk.ac.cam.spectra.spectrasub.servlet
Class SpectraContextLoader
java.lang.Object
uk.ac.cam.spectra.spectrasub.servlet.SpectraContextLoader
public class SpectraContextLoader
- extends java.lang.Object
If a valid workspace has been detected and set as a servlet context attribute
this component adds it to the config path for the spring application context,
otherwise just creates the default context. Also contains methods for
triggering the generation of dynamic spring config from profile.xml and
restarting the spring container.
- Author:
- ojd20
|
Method Summary |
void |
addCustomSpringConfig(java.lang.String workspacePath,
org.springframework.web.context.ConfigurableWebApplicationContext wac)
Adds the custom spring-beans file to the Spring config if it exists |
void |
bounceContext(org.apache.tapestry.web.WebContext webContext)
|
void |
checkAndReconfigure(javax.servlet.ServletContext servletContext)
|
void |
checkAndReconfigure(java.lang.String wsPath,
org.springframework.context.support.AbstractApplicationContext applicationContext)
|
void |
checkAndReconfigure(org.apache.tapestry.web.WebContext webContext)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpectraContextLoader
public SpectraContextLoader()
addCustomSpringConfig
public void addCustomSpringConfig(java.lang.String workspacePath,
org.springframework.web.context.ConfigurableWebApplicationContext wac)
- Adds the custom spring-beans file to the Spring config if it exists
- Parameters:
servletContext - wac -
checkAndReconfigure
public void checkAndReconfigure(javax.servlet.ServletContext servletContext)
checkAndReconfigure
public void checkAndReconfigure(java.lang.String wsPath,
org.springframework.context.support.AbstractApplicationContext applicationContext)
checkAndReconfigure
public void checkAndReconfigure(org.apache.tapestry.web.WebContext webContext)
bounceContext
public void bounceContext(org.apache.tapestry.web.WebContext webContext)
Copyright © 2006-2007 The SPECTRa Project. All Rights Reserved.