public class ContextManager
extends java.lang.Object
| Constructor and Description |
|---|
ContextManager() |
| Modifier and Type | Method and Description |
|---|---|
static void |
fullStop()
Stops all contexts currently being managed.
|
static org.springframework.context.ApplicationContext |
getContext()
Get the default application context.
|
static org.springframework.context.ApplicationContext |
getContext(java.lang.String name)
Get an application context by name.
|
static org.springframework.context.ApplicationContext |
start(org.springframework.context.ApplicationContext ctx) |
static org.springframework.context.ApplicationContext |
start(java.lang.Class<?>... clazzes)
Start the default application context with the given configuration classes.
|
static org.springframework.context.ApplicationContext |
start(java.lang.String name,
java.lang.Class<?>... clazzes)
Start an application context with the given configuration classes.
|
static void |
stop()
Stop the default context.
|
static void |
stop(java.lang.String name)
Stop a specific context by name.
|
public static org.springframework.context.ApplicationContext start(java.lang.Class<?>... clazzes)
clazzes - public static org.springframework.context.ApplicationContext start(org.springframework.context.ApplicationContext ctx)
public static org.springframework.context.ApplicationContext start(java.lang.String name,
java.lang.Class<?>... clazzes)
name - clazzes - public static org.springframework.context.ApplicationContext getContext()
public static org.springframework.context.ApplicationContext getContext(java.lang.String name)
name - public static void stop()
public static void stop(java.lang.String name)
name - public static void fullStop()