public class SpringUtils extends Object
| Constructor and Description |
|---|
SpringUtils() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
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.Copyright © 2016 Eclipse Stardust. All Rights Reserved.