public class BeanLookup extends Object implements org.springframework.beans.factory.ListableBeanFactory
| Constructor and Description |
|---|
BeanLookup() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsBean(String name) |
boolean |
containsBeanDefinition(String name) |
<A extends Annotation> |
findAnnotationOnBean(String name,
Class<A> annotationType) |
String[] |
getAliases(String name) |
<T> T |
getBean(Class<T> requiredType) |
<T> T |
getBean(Class<T> requiredType,
Object... objects) |
Object |
getBean(String name) |
<T> T |
getBean(String name,
Class<T> requiredType) |
Object |
getBean(String name,
Object... objects) |
int |
getBeanDefinitionCount() |
String[] |
getBeanDefinitionNames() |
String[] |
getBeanNamesForAnnotation(Class<? extends Annotation> annotationType) |
String[] |
getBeanNamesForType(Class<?> type) |
String[] |
getBeanNamesForType(Class<?> type,
boolean includePrototypes,
boolean allowEagerInit) |
String[] |
getBeanNamesForType(org.springframework.core.ResolvableType resolvableType) |
<T> Map<String,T> |
getBeansOfType(Class<T> type) |
<T> Map<String,T> |
getBeansOfType(Class<T> type,
boolean includePrototypes,
boolean allowEagerInit) |
Map<String,Object> |
getBeansWithAnnotation(Class<? extends Annotation> annotationType) |
Class<?> |
getType(String name) |
boolean |
isPrototype(String name) |
boolean |
isSingleton(String name) |
boolean |
isTypeMatch(String name,
Class<?> typeToMatch) |
boolean |
isTypeMatch(String name,
org.springframework.core.ResolvableType resolvableType) |
public boolean containsBeanDefinition(String name)
containsBeanDefinition in interface org.springframework.beans.factory.ListableBeanFactorypublic int getBeanDefinitionCount()
getBeanDefinitionCount in interface org.springframework.beans.factory.ListableBeanFactorypublic String[] getBeanDefinitionNames()
getBeanDefinitionNames in interface org.springframework.beans.factory.ListableBeanFactorypublic String[] getBeanNamesForType(Class<?> type)
getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactorypublic String[] getBeanNamesForType(Class<?> type, boolean includePrototypes, boolean allowEagerInit)
getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactorypublic <T> Map<String,T> getBeansOfType(Class<T> type)
getBeansOfType in interface org.springframework.beans.factory.ListableBeanFactorypublic <T> Map<String,T> getBeansOfType(Class<T> type, boolean includePrototypes, boolean allowEagerInit)
getBeansOfType in interface org.springframework.beans.factory.ListableBeanFactorypublic String[] getBeanNamesForAnnotation(Class<? extends Annotation> annotationType)
getBeanNamesForAnnotation in interface org.springframework.beans.factory.ListableBeanFactorypublic Map<String,Object> getBeansWithAnnotation(Class<? extends Annotation> annotationType)
getBeansWithAnnotation in interface org.springframework.beans.factory.ListableBeanFactorypublic <A extends Annotation> A findAnnotationOnBean(String name, Class<A> annotationType)
findAnnotationOnBean in interface org.springframework.beans.factory.ListableBeanFactorypublic Object getBean(String name)
getBean in interface org.springframework.beans.factory.BeanFactorypublic <T> T getBean(String name, Class<T> requiredType)
getBean in interface org.springframework.beans.factory.BeanFactorypublic <T> T getBean(Class<T> requiredType)
getBean in interface org.springframework.beans.factory.BeanFactorypublic Object getBean(String name, Object... objects)
getBean in interface org.springframework.beans.factory.BeanFactorypublic <T> T getBean(Class<T> requiredType, Object... objects)
getBean in interface org.springframework.beans.factory.BeanFactorypublic boolean containsBean(String name)
containsBean in interface org.springframework.beans.factory.BeanFactorypublic boolean isSingleton(String name)
isSingleton in interface org.springframework.beans.factory.BeanFactorypublic boolean isPrototype(String name)
isPrototype in interface org.springframework.beans.factory.BeanFactorypublic boolean isTypeMatch(String name, Class<?> typeToMatch)
isTypeMatch in interface org.springframework.beans.factory.BeanFactorypublic Class<?> getType(String name)
getType in interface org.springframework.beans.factory.BeanFactorypublic String[] getAliases(String name)
getAliases in interface org.springframework.beans.factory.BeanFactorypublic boolean isTypeMatch(String name, org.springframework.core.ResolvableType resolvableType)
isTypeMatch in interface org.springframework.beans.factory.BeanFactorypublic String[] getBeanNamesForType(org.springframework.core.ResolvableType resolvableType)
getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactoryCopyright © 2018. All rights reserved.