Example usage for Java org.springframework.beans.factory ListableBeanFactory fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | containsBean(String name) Does this bean factory contain a bean definition or externally registered singleton instance with the given name? |
boolean | containsBeanDefinition(String beanName) Check if this bean factory contains a bean definition with the given name. |
String[] | getAliases(String name) Return the aliases for the given bean name, if any. |
Object | getBean(String name) Return an instance, which may be shared or independent, of the specified bean. |
T | getBean(String name, Class Return an instance, which may be shared or independent, of the specified bean. |
int | getBeanDefinitionCount() Return the number of beans defined in the factory. |
String[] | getBeanDefinitionNames() Return the names of all beans defined in this factory. |
String[] | getBeanNamesForType(ResolvableType type) Return the names of beans matching the given type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans. |
String[] | getBeanNamesForType(@Nullable Class> type) Return the names of beans matching the given type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans. |
String[] | getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit) Return the names of beans matching the given type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans. |
String[] | getBeanNamesForType(@Nullable Class> type, boolean includeNonSingletons, boolean allowEagerInit) Return the names of beans matching the given type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans. |
Map | getBeansOfType(@Nullable Class Return the bean instances that match the given object type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans. |
Map | getBeansOfType(@Nullable Class Return the bean instances that match the given object type (including subclasses), judging from either bean definitions or the value of getObjectType in the case of FactoryBeans. |
Class> | getType(String name) Determine the type of the bean with the given name. |