public final class ApplicationContextHolder extends Object
Modifier and Type | Method and Description |
---|---|
static void |
bind(ApplicationContext context)
Binds the
ApplicationContext to the current context class loader. |
static ApplicationContext |
getApplicationContext() |
static ApplicationContext |
getRequiredApplicationContext() |
static void |
release()
Releases the
ApplicationContext associated with the current context class loader. |
public static ApplicationContext getRequiredApplicationContext()
public static ApplicationContext getApplicationContext()
public static void bind(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.