|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.eclipse.stardust.engine.api.spring.SpringUtils
public class SpringUtils
This class provides methods to obtain the Spring Application Context, to cache a Spring Application Context, to clear the cache and to obtain the Spring Web Application Context.
| Constructor Summary | |
|---|---|
SpringUtils()
|
|
| Method Summary | |
|---|---|
static org.springframework.context.ApplicationContext |
getApplicationContext()
Returns the cached Spring Application Context for retrieving bean instances specified in carnot-spring-context.xml. |
static org.springframework.context.ApplicationContext |
getWebApplicationContext()
Finds the root web application context for this web application for the servlet context or for the current thread. |
static void |
reset()
Removes the stored Spring Application Context from cache. |
static void |
setApplicationContext(org.springframework.context.ConfigurableApplicationContext ctxt)
Sets the specified Spring Application Context that has to be cached. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpringUtils()
| Method Detail |
|---|
public static org.springframework.context.ApplicationContext getApplicationContext()
carnot-spring-context.xml. If no cached application context is
available a new one is bootstrapped.
ApplicationContext containing Spring Beanspublic static void setApplicationContext(org.springframework.context.ConfigurableApplicationContext ctxt)
ctxt - The Spring Application Context to be cached.public static void reset()
public static org.springframework.context.ApplicationContext getWebApplicationContext()
ApplicationContext, or null if none found.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||