public class ContextClassLoaderApplicationContextHolder extends Object
ApplicationContext for the current context class loader.| Constructor and Description |
|---|
ContextClassLoaderApplicationContextHolder() |
| 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 |
get()
Returns the
ApplicationContext bound to the current context class loader or any of
its parent class loaders. |
static void |
release()
Releases the
ApplicationContext associated with the current context class loader. |
public ContextClassLoaderApplicationContextHolder()
public static org.springframework.context.ApplicationContext get()
ApplicationContext bound to the current context class loader or any of
its parent class loaders. Walking up the class loader hierarchy is required to support
special class loader scenarios like Spring Boot's reloading mechanism.public static void bind(org.springframework.context.ApplicationContext context)
ApplicationContext to the current context class loader .public static void release()
ApplicationContext associated with the current context class loader.Copyright © 2022. All rights reserved.