public final class ApplicationContextHolder extends Object
Modifier and Type | Method and Description |
---|---|
static void |
bind(org.springframework.context.ApplicationContext context)
Binds the
ApplicationContext to the current context class loader. |
static org.springframework.context.ApplicationContext |
getApplicationContext() |
static org.springframework.context.ApplicationContext |
getRequiredApplicationContext() |
static void |
release()
Releases the
ApplicationContext associated with the current context class loader. |
public static org.springframework.context.ApplicationContext getRequiredApplicationContext()
public static org.springframework.context.ApplicationContext getApplicationContext()
public static void bind(org.springframework.context.ApplicationContext context)
ApplicationContext
to the current context class loader.context
- the application context to bindpublic static void release()
ApplicationContext
associated with the current context class loader.