public static class SpringJpaDaoFactory.SpringApplicationContext extends Object implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
SpringApplicationContext() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
getBean(String beanName)
This is about the same as context.getBean("beanName"), except it has its
own static handle to the Spring context, so calling this method statically
will give access to the beans by name in the Spring application context.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext context)
This method is called from within the ApplicationContext once it is
done starting up, it will stick a reference to itself into this bean.
|
public void setApplicationContext(org.springframework.context.ApplicationContext context)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwarecontext - a reference to the ApplicationContext.org.springframework.beans.BeansExceptionpublic static Object getBean(String beanName)
beanName - the name of the bean to get.Copyright © 2018. All Rights Reserved.