org.apache.servicemix.common.xbean
Class SimpleBeanFactory
java.lang.Object
org.apache.servicemix.common.xbean.SimpleBeanFactory
- All Implemented Interfaces:
- org.springframework.beans.factory.BeanFactory
public class SimpleBeanFactory
- extends Object
- implements org.springframework.beans.factory.BeanFactory
A simple BeanFactory containing a set of predefined beans which can be used
as a parent for another BeanFactory.
- Author:
- gnodet
| Fields inherited from interface org.springframework.beans.factory.BeanFactory |
FACTORY_BEAN_PREFIX |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleBeanFactory
public SimpleBeanFactory(Map beans)
containsBean
public boolean containsBean(String name)
- Specified by:
containsBean in interface org.springframework.beans.factory.BeanFactory
getAliases
public String[] getAliases(String name)
throws org.springframework.beans.factory.NoSuchBeanDefinitionException
- Specified by:
getAliases in interface org.springframework.beans.factory.BeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
getBean
public Object getBean(String name)
throws org.springframework.beans.BeansException
- Specified by:
getBean in interface org.springframework.beans.factory.BeanFactory
- Throws:
org.springframework.beans.BeansException
getBean
public Object getBean(String name,
Class requiredType)
throws org.springframework.beans.BeansException
- Specified by:
getBean in interface org.springframework.beans.factory.BeanFactory
- Throws:
org.springframework.beans.BeansException
getType
public Class getType(String name)
throws org.springframework.beans.factory.NoSuchBeanDefinitionException
- Specified by:
getType in interface org.springframework.beans.factory.BeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
isSingleton
public boolean isSingleton(String name)
throws org.springframework.beans.factory.NoSuchBeanDefinitionException
- Specified by:
isSingleton in interface org.springframework.beans.factory.BeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
isTypeMatch
public boolean isTypeMatch(String name,
Class targetType)
throws org.springframework.beans.factory.NoSuchBeanDefinitionException
- Specified by:
isTypeMatch in interface org.springframework.beans.factory.BeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
isPrototype
public boolean isPrototype(String name)
- Specified by:
isPrototype in interface org.springframework.beans.factory.BeanFactory
Copyright © 2005-2007 Apache Software Foundation. All Rights Reserved.