|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.config.java.support.ConfigurationSupport
public class ConfigurationSupport
Convenient base class for Configurations, allowing easy lookup of beans in the owning factory
Constructor Summary | |
---|---|
ConfigurationSupport()
|
Method Summary | ||
---|---|---|
protected ApplicationContext |
getApplicationContext()
Deprecated. |
|
|
getBean(Class<T> type)
|
|
|
getBean(Class<T> type,
String beanName)
|
|
Object |
getBean(String beanName)
|
|
protected BeanFactory |
getBeanFactory()
|
|
protected Object |
getConfigured(Object o)
Invoke callbacks on the object, as though it was configured in the factory |
|
protected Object |
getObject(FactoryBean fb)
Return the object created by this FactoryBean instance, first invoking any container callbacks on the instance |
|
void |
setApplicationContext(ApplicationContext ac)
|
|
void |
setBeanFactory(BeanFactory beanFactory)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationSupport()
Method Detail |
---|
public void setBeanFactory(BeanFactory beanFactory)
setBeanFactory
in interface BeanFactoryAware
protected BeanFactory getBeanFactory()
public void setApplicationContext(ApplicationContext ac)
setApplicationContext
in interface ApplicationContextAware
@Deprecated protected ApplicationContext getApplicationContext()
public Object getBean(String beanName)
public <T> T getBean(Class<T> type)
public <T> T getBean(Class<T> type, String beanName)
protected Object getObject(FactoryBean fb)
fb
- FactoryBean instance
protected Object getConfigured(Object o)
o
- object to configure
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |