public final class CompositeBeanFactory extends Object implements org.springframework.beans.factory.BeanFactory
Constructor and Description |
---|
CompositeBeanFactory(Collection<? extends org.springframework.beans.factory.BeanFactory> factories) |
Modifier and Type | Method and Description |
---|---|
boolean |
containsBean(String name) |
static org.springframework.beans.factory.BeanFactory |
createBeanFactory(Collection<? extends SpringResourceLoader> rls) |
String[] |
getAliases(String name) |
<T> T |
getBean(Class<T> requiredType) |
Object |
getBean(String name) |
<T> T |
getBean(String name,
Class<T> requiredType) |
Object |
getBean(String name,
Object... args) |
Class<?> |
getType(String name) |
boolean |
isPrototype(String name) |
boolean |
isSingleton(String name) |
boolean |
isTypeMatch(String name,
Class targetType) |
public CompositeBeanFactory(Collection<? extends org.springframework.beans.factory.BeanFactory> factories)
public static org.springframework.beans.factory.BeanFactory createBeanFactory(Collection<? extends SpringResourceLoader> rls)
public Object getBean(String name) throws org.springframework.beans.BeansException
getBean
in interface org.springframework.beans.factory.BeanFactory
org.springframework.beans.BeansException
public <T> T getBean(String name, Class<T> requiredType) throws org.springframework.beans.BeansException
getBean
in interface org.springframework.beans.factory.BeanFactory
org.springframework.beans.BeansException
public <T> T getBean(Class<T> requiredType) throws org.springframework.beans.BeansException
getBean
in interface org.springframework.beans.factory.BeanFactory
org.springframework.beans.BeansException
public Object getBean(String name, Object... args) throws org.springframework.beans.BeansException
getBean
in interface org.springframework.beans.factory.BeanFactory
org.springframework.beans.BeansException
public boolean containsBean(String name)
containsBean
in interface org.springframework.beans.factory.BeanFactory
public boolean isSingleton(String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isSingleton
in interface org.springframework.beans.factory.BeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
public boolean isPrototype(String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isPrototype
in interface org.springframework.beans.factory.BeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
public boolean isTypeMatch(String name, Class targetType) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isTypeMatch
in interface org.springframework.beans.factory.BeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
public Class<?> getType(String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
getType
in interface org.springframework.beans.factory.BeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
public String[] getAliases(String name)
getAliases
in interface org.springframework.beans.factory.BeanFactory
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.