|
[Deprecated API] | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | CURRENT API | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.interface21.beans.factory.support.StaticListableBeanFactory
Singleton only. Allows beans to be registered by name programmatically. Mainly useful for testing.
| Constructor Summary | |
StaticListableBeanFactory()
|
|
| Method Summary | |
void |
addBean(java.lang.String name,
java.lang.Object bean)
Add a new singleton bean |
java.lang.String[] |
getAliases(java.lang.String name)
Return the aliases for the given bean name, if defined. |
java.lang.Object |
getBean(java.lang.String name)
Return an instance (possibly shared or independent) of the given bean name. |
java.lang.Object |
getBean(java.lang.String name,
java.lang.Class requiredType)
Return an instance (possibly shared or independent) of the given bean name. |
int |
getBeanDefinitionCount()
Return the number of beans defined in the factory |
java.lang.String[] |
getBeanDefinitionNames()
Return the names of all beans defined in this factory |
java.lang.String[] |
getBeanDefinitionNames(java.lang.Class type)
Return the names of beans matching the given object type (including subclasses). |
boolean |
isSingleton(java.lang.String name)
Is this bean a singleton? |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StaticListableBeanFactory()
| Method Detail |
public int getBeanDefinitionCount()
ListableBeanFactorygetBeanDefinitionCount in interface ListableBeanFactoryListableBeanFactory.getBeanDefinitionCount()public java.lang.String[] getBeanDefinitionNames()
ListableBeanFactorygetBeanDefinitionNames in interface ListableBeanFactoryListableBeanFactory.getBeanDefinitionNames()public java.lang.String[] getBeanDefinitionNames(java.lang.Class type)
ListableBeanFactorygetBeanDefinitionNames in interface ListableBeanFactoryListableBeanFactory.getBeanDefinitionNames(Class)
public java.lang.Object getBean(java.lang.String name,
java.lang.Class requiredType)
throws BeansException
BeanFactorygetBean in interface BeanFactoryBeanFactory.getBean(String, Class)
public java.lang.Object getBean(java.lang.String name)
throws BeansException
BeanFactorygetBean in interface BeanFactoryBeanFactory.getBean(String)
public void addBean(java.lang.String name,
java.lang.Object bean)
public boolean isSingleton(java.lang.String name)
BeanFactoryisSingleton in interface BeanFactoryBeanFactory.isSingleton(java.lang.String)public java.lang.String[] getAliases(java.lang.String name)
BeanFactorygetAliases in interface BeanFactorycom.interface21.beans.factory.BeanFactoryname - the bean name to check for aliases
|
[Deprecated API] | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | CURRENT API | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||