public class SpringContextHolder extends Object implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
SpringContextHolder()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.context.ApplicationContext |
getApplicationContext() |
static SpringContextHolder |
Instance()
Return the singleton instance
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public static SpringContextHolder Instance()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic org.springframework.context.ApplicationContext getApplicationContext()
Copyright © 2019. All rights reserved.