@Singleton
@Internal
public class MicronautBeanFactory
extends org.springframework.beans.factory.support.DefaultListableBeanFactory
implements org.springframework.beans.factory.ListableBeanFactory, org.springframework.beans.factory.config.AutowireCapableBeanFactory, org.springframework.beans.factory.HierarchicalBeanFactory, org.springframework.beans.factory.config.ConfigurableListableBeanFactory
ListableBeanFactory
interface for Micronaut.AUTOWIRE_AUTODETECT, AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_CONSTRUCTOR, AUTOWIRE_NO, ORIGINAL_INSTANCE_SUFFIX
Constructor and Description |
---|
MicronautBeanFactory(io.micronaut.context.BeanContext beanContext,
SpringAwareListener awareListener,
MicronautBeanFactoryConfiguration configuration)
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
applyBeanPropertyValues(java.lang.Object existingBean,
java.lang.String beanName) |
java.lang.Object |
autowire(java.lang.Class<?> beanClass,
int autowireMode,
boolean dependencyCheck) |
void |
autowireBean(java.lang.Object existingBean) |
void |
autowireBeanProperties(java.lang.Object existingBean,
int autowireMode,
boolean dependencyCheck) |
java.lang.Object |
configureBean(java.lang.Object existingBean,
java.lang.String beanName) |
boolean |
containsBean(java.lang.String name) |
boolean |
containsBeanDefinition(java.lang.String beanName) |
boolean |
containsLocalBean(java.lang.String name) |
boolean |
containsSingleton(java.lang.String beanName) |
java.lang.Object |
createBean(java.lang.Class<?> beanClass,
int autowireMode,
boolean dependencyCheck) |
<T> T |
createBean(java.lang.Class<T> beanClass) |
void |
destroyBean(java.lang.Object existingBean) |
void |
destroyBean(java.lang.String beanName,
java.lang.Object beanInstance) |
protected <T> T |
doGetBean(java.lang.String name,
java.lang.Class<T> requiredType,
java.lang.Object[] args,
boolean typeCheckOnly) |
<A extends java.lang.annotation.Annotation> |
findAnnotationOnBean(java.lang.String beanName,
java.lang.Class<A> annotationType) |
<T> T |
getBean(java.lang.Class<T> requiredType) |
<T> T |
getBean(java.lang.Class<T> requiredType,
java.lang.Object... args) |
java.lang.Object |
getBean(java.lang.String name) |
<T> T |
getBean(java.lang.String name,
java.lang.Class<T> requiredType) |
java.lang.Object |
getBean(java.lang.String name,
java.lang.Object... args) |
io.micronaut.context.BeanContext |
getBeanContext() |
org.springframework.beans.factory.config.BeanDefinition |
getBeanDefinition(java.lang.String beanName) |
int |
getBeanDefinitionCount() |
java.lang.String[] |
getBeanDefinitionNames() |
java.lang.String[] |
getBeanNamesForAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType) |
java.lang.String[] |
getBeanNamesForType(java.lang.Class<?> type) |
java.lang.String[] |
getBeanNamesForType(java.lang.Class<?> type,
boolean includeNonSingletons,
boolean allowEagerInit) |
java.lang.String[] |
getBeanNamesForType(org.springframework.core.ResolvableType type) |
java.util.Iterator<java.lang.String> |
getBeanNamesIterator() |
<T> org.springframework.beans.factory.ObjectProvider<T> |
getBeanProvider(java.lang.Class<T> requiredType) |
<T> org.springframework.beans.factory.ObjectProvider<T> |
getBeanProvider(org.springframework.core.ResolvableType requiredType) |
<T> java.util.Map<java.lang.String,T> |
getBeansOfType(java.lang.Class<T> type,
boolean includeNonSingletons,
boolean allowEagerInit) |
protected java.lang.Object |
getSingleton(java.lang.String beanName,
boolean allowEarlyReference) |
java.lang.Object |
getSingleton(java.lang.String beanName,
org.springframework.beans.factory.ObjectFactory<?> singletonFactory) |
java.lang.Class<?> |
getType(java.lang.String beanName) |
java.lang.Object |
initializeBean(java.lang.Object existingBean,
java.lang.String beanName) |
boolean |
isAutowireCandidate(java.lang.String beanName,
org.springframework.beans.factory.config.DependencyDescriptor descriptor) |
boolean |
isFactoryBean(java.lang.String name) |
protected boolean |
isPrimary(java.lang.String beanName,
java.lang.Object beanInstance) |
boolean |
isPrototype(java.lang.String name) |
static boolean |
isSingleton(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
Shared logic for Micronaut singleton rules.
|
protected boolean |
isSingleton(io.micronaut.inject.BeanDefinitionReference<?> definition)
Is the definition singleton.
|
boolean |
isSingleton(java.lang.String name) |
boolean |
isTypeMatch(java.lang.String name,
java.lang.Class<?> typeToMatch) |
boolean |
isTypeMatch(java.lang.String name,
org.springframework.core.ResolvableType typeToMatch) |
void |
registerBeanDefinition(java.lang.String beanName,
org.springframework.beans.factory.config.BeanDefinition beanDefinition) |
void |
registerSingleton(java.lang.String beanName,
java.lang.Object singletonObject) |
allowAliasOverriding, clearMergedBeanDefinition, clearMetadataCache, copyConfigurationFrom, destroySingleton, destroySingletons, determineAutowireCandidate, determineHighestPriorityCandidate, determinePrimaryCandidate, doResolveDependency, findAutowireCandidates, freezeConfiguration, getAutowireCandidateResolver, getBeanNamesForType, getBeansOfType, getBeansWithAnnotation, getDependencyComparator, getPriority, getSerializationId, isAllowBeanDefinitionOverriding, isAllowEagerClassLoading, isAutowireCandidate, isAutowireCandidate, isBeanEligibleForMetadataCaching, isConfigurationFrozen, matchesBeanName, preInstantiateSingletons, registerResolvableDependency, removeBeanDefinition, resetBeanDefinition, resolveDependency, resolveNamedBean, setAllowBeanDefinitionOverriding, setAllowEagerClassLoading, setAutowireCandidateResolver, setDependencyComparator, setSerializationId, toString, writeReplace
applyBeanPostProcessorsAfterInitialization, applyBeanPostProcessorsBeforeInitialization, applyBeanPostProcessorsBeforeInstantiation, applyMergedBeanDefinitionPostProcessors, applyPropertyValues, autowireByName, autowireByType, autowireConstructor, checkDependencies, clearSingletonCache, createBean, createBeanInstance, determineConstructorsFromBeanPostProcessors, determineTargetType, doCreateBean, filterPropertyDescriptorsForDependencyCheck, filterPropertyDescriptorsForDependencyCheck, getEarlyBeanReference, getInstantiationStrategy, getObjectForBeanInstance, getParameterNameDiscoverer, getTypeForFactoryBean, getTypeForFactoryBean, getTypeForFactoryMethod, ignoreDependencyInterface, ignoreDependencyType, initializeBean, instantiateBean, instantiateUsingFactoryMethod, invokeCustomInitMethod, invokeInitMethods, isExcludedFromDependencyCheck, obtainFromSupplier, populateBean, postProcessObjectFromFactoryBean, predictBeanType, removeSingleton, resolveBeanByName, resolveBeforeInstantiation, resolveDependency, setAllowCircularReferences, setAllowRawInjectionDespiteWrapping, setInstantiationStrategy, setParameterNameDiscoverer, unsatisfiedNonSimpleProperties
addBeanPostProcessor, addEmbeddedValueResolver, addPropertyEditorRegistrar, afterPrototypeCreation, beforePrototypeCreation, checkMergedBeanDefinition, cleanupAfterBeanCreationFailure, copyRegisteredEditorsTo, destroyBean, destroyScopedBean, evaluateBeanDefinitionString, getAccessControlContext, getAliases, getBean, getBeanClassLoader, getBeanExpressionResolver, getBeanPostProcessorCount, getBeanPostProcessors, getConversionService, getCustomEditors, getCustomTypeConverter, getMergedBeanDefinition, getMergedBeanDefinition, getMergedBeanDefinition, getMergedLocalBeanDefinition, getParentBeanFactory, getPropertyEditorRegistrars, getRegisteredScope, getRegisteredScopeNames, getTempClassLoader, getType, getTypeConverter, hasBeanCreationStarted, hasDestructionAwareBeanPostProcessors, hasEmbeddedValueResolver, hasInstantiationAwareBeanPostProcessors, initBeanWrapper, isActuallyInCreation, isBeanNameInUse, isCacheBeanMetadata, isFactoryBean, isPrototypeCurrentlyInCreation, isTypeMatch, markBeanAsCreated, originalBeanName, registerCustomEditor, registerCustomEditors, registerDisposableBeanIfNecessary, registerScope, removeSingletonIfCreatedForTypeCheckOnly, requiresDestruction, resolveBeanClass, resolveEmbeddedValue, setBeanClassLoader, setBeanExpressionResolver, setCacheBeanMetadata, setConversionService, setParentBeanFactory, setSecurityContextProvider, setTempClassLoader, setTypeConverter, transformedBeanName
getCachedObjectForFactoryBean, getFactoryBean, getObjectFromFactoryBean, getTypeForFactoryBean
addSingleton, addSingletonFactory, afterSingletonCreation, beforeSingletonCreation, destroyBean, getDependenciesForBean, getDependentBeans, getSingleton, getSingletonCount, getSingletonMutex, getSingletonNames, hasDependentBean, isCurrentlyInCreation, isDependent, isSingletonCurrentlyInCreation, onSuppressedException, registerContainedBean, registerDependentBean, registerDisposableBean, setCurrentlyInCreation
canonicalName, checkForAliasCircle, hasAlias, isAlias, registerAlias, removeAlias, resolveAliases
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
clearMetadataCache, freezeConfiguration, ignoreDependencyInterface, ignoreDependencyType, isConfigurationFrozen, preInstantiateSingletons, registerResolvableDependency
getBeanNamesForType, getBeansOfType, getBeansWithAnnotation
applyBeanPostProcessorsAfterInitialization, applyBeanPostProcessorsBeforeInitialization, resolveBeanByName, resolveDependency, resolveDependency, resolveNamedBean
addBeanPostProcessor, addEmbeddedValueResolver, addPropertyEditorRegistrar, copyConfigurationFrom, copyRegisteredEditorsTo, destroyScopedBean, destroySingletons, getAccessControlContext, getBeanClassLoader, getBeanExpressionResolver, getBeanPostProcessorCount, getConversionService, getDependenciesForBean, getDependentBeans, getMergedBeanDefinition, getRegisteredScope, getRegisteredScopeNames, getTempClassLoader, getTypeConverter, hasEmbeddedValueResolver, isCacheBeanMetadata, isCurrentlyInCreation, registerAlias, registerCustomEditor, registerDependentBean, registerScope, resolveAliases, resolveEmbeddedValue, setBeanClassLoader, setBeanExpressionResolver, setCacheBeanMetadata, setConversionService, setCurrentlyInCreation, setParentBeanFactory, setTempClassLoader, setTypeConverter
getParentBeanFactory
getSingleton, getSingletonCount, getSingletonMutex, getSingletonNames
public MicronautBeanFactory(io.micronaut.context.BeanContext beanContext, SpringAwareListener awareListener, MicronautBeanFactoryConfiguration configuration)
beanContext
- The target Micronaut contextawareListener
- The spring aware listenerconfiguration
- Configurationpublic static boolean isSingleton(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
annotationMetadata
- The metadata@Nonnull public java.lang.Object getBean(@Nonnull java.lang.String name) throws org.springframework.beans.BeansException
getBean
in interface org.springframework.beans.factory.BeanFactory
getBean
in class org.springframework.beans.factory.support.AbstractBeanFactory
org.springframework.beans.BeansException
@Nonnull public <T> T getBean(@Nonnull java.lang.String name, @Nonnull java.lang.Class<T> requiredType) throws org.springframework.beans.BeansException
getBean
in interface org.springframework.beans.factory.BeanFactory
getBean
in class org.springframework.beans.factory.support.AbstractBeanFactory
org.springframework.beans.BeansException
@Nonnull public java.lang.Object getBean(@Nonnull java.lang.String name, @Nonnull java.lang.Object... args) throws org.springframework.beans.BeansException
getBean
in interface org.springframework.beans.factory.BeanFactory
getBean
in class org.springframework.beans.factory.support.AbstractBeanFactory
org.springframework.beans.BeansException
@Nonnull public <T> T getBean(@Nonnull java.lang.Class<T> requiredType) throws org.springframework.beans.BeansException
getBean
in interface org.springframework.beans.factory.BeanFactory
getBean
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
org.springframework.beans.BeansException
@Nonnull public <T> T getBean(@Nonnull java.lang.Class<T> requiredType, @Nonnull java.lang.Object... args) throws org.springframework.beans.BeansException
getBean
in interface org.springframework.beans.factory.BeanFactory
getBean
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
org.springframework.beans.BeansException
@Nonnull public <T> org.springframework.beans.factory.ObjectProvider<T> getBeanProvider(@Nonnull java.lang.Class<T> requiredType)
getBeanProvider
in interface org.springframework.beans.factory.BeanFactory
getBeanProvider
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
@Nonnull public <T> org.springframework.beans.factory.ObjectProvider<T> getBeanProvider(@Nonnull org.springframework.core.ResolvableType requiredType)
getBeanProvider
in interface org.springframework.beans.factory.BeanFactory
getBeanProvider
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
public boolean containsBean(@Nonnull java.lang.String name)
containsBean
in interface org.springframework.beans.factory.BeanFactory
containsBean
in class org.springframework.beans.factory.support.AbstractBeanFactory
public boolean isSingleton(@Nonnull java.lang.String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isSingleton
in interface org.springframework.beans.factory.BeanFactory
isSingleton
in class org.springframework.beans.factory.support.AbstractBeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
protected boolean isSingleton(@Nonnull io.micronaut.inject.BeanDefinitionReference<?> definition)
definition
- The definitionpublic boolean isPrototype(@Nonnull java.lang.String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isPrototype
in interface org.springframework.beans.factory.BeanFactory
isPrototype
in class org.springframework.beans.factory.support.AbstractBeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
public boolean isTypeMatch(@Nonnull java.lang.String name, @Nonnull org.springframework.core.ResolvableType typeToMatch) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isTypeMatch
in interface org.springframework.beans.factory.BeanFactory
isTypeMatch
in class org.springframework.beans.factory.support.AbstractBeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
public boolean isTypeMatch(@Nonnull java.lang.String name, @Nonnull java.lang.Class<?> typeToMatch) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isTypeMatch
in interface org.springframework.beans.factory.BeanFactory
isTypeMatch
in class org.springframework.beans.factory.support.AbstractBeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
public java.lang.Class<?> getType(@Nonnull java.lang.String beanName) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
getType
in interface org.springframework.beans.factory.BeanFactory
getType
in class org.springframework.beans.factory.support.AbstractBeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
public boolean containsBeanDefinition(@Nonnull java.lang.String beanName)
containsBeanDefinition
in interface org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition
in interface org.springframework.beans.factory.support.BeanDefinitionRegistry
containsBeanDefinition
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
public int getBeanDefinitionCount()
getBeanDefinitionCount
in interface org.springframework.beans.factory.ListableBeanFactory
getBeanDefinitionCount
in interface org.springframework.beans.factory.support.BeanDefinitionRegistry
getBeanDefinitionCount
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
@Nonnull public java.lang.String[] getBeanDefinitionNames()
getBeanDefinitionNames
in interface org.springframework.beans.factory.ListableBeanFactory
getBeanDefinitionNames
in interface org.springframework.beans.factory.support.BeanDefinitionRegistry
getBeanDefinitionNames
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
@Nonnull public java.lang.String[] getBeanNamesForType(@Nonnull org.springframework.core.ResolvableType type)
getBeanNamesForType
in interface org.springframework.beans.factory.ListableBeanFactory
getBeanNamesForType
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
@Nonnull public java.lang.String[] getBeanNamesForType(java.lang.Class<?> type)
getBeanNamesForType
in interface org.springframework.beans.factory.ListableBeanFactory
getBeanNamesForType
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
@Nonnull public java.lang.String[] getBeanNamesForType(java.lang.Class<?> type, boolean includeNonSingletons, boolean allowEagerInit)
getBeanNamesForType
in interface org.springframework.beans.factory.ListableBeanFactory
getBeanNamesForType
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
@Nonnull public <T> java.util.Map<java.lang.String,T> getBeansOfType(java.lang.Class<T> type, boolean includeNonSingletons, boolean allowEagerInit) throws org.springframework.beans.BeansException
getBeansOfType
in interface org.springframework.beans.factory.ListableBeanFactory
getBeansOfType
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
org.springframework.beans.BeansException
@Nonnull public java.lang.String[] getBeanNamesForAnnotation(@Nonnull java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
getBeanNamesForAnnotation
in interface org.springframework.beans.factory.ListableBeanFactory
getBeanNamesForAnnotation
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
public <A extends java.lang.annotation.Annotation> A findAnnotationOnBean(@Nonnull java.lang.String beanName, @Nonnull java.lang.Class<A> annotationType) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
findAnnotationOnBean
in interface org.springframework.beans.factory.ListableBeanFactory
findAnnotationOnBean
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
@Nonnull public <T> T createBean(@Nonnull java.lang.Class<T> beanClass) throws org.springframework.beans.BeansException
createBean
in interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
createBean
in class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
org.springframework.beans.BeansException
public void autowireBean(@Nonnull java.lang.Object existingBean) throws org.springframework.beans.BeansException
autowireBean
in interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
autowireBean
in class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
org.springframework.beans.BeansException
public java.lang.Object configureBean(java.lang.Object existingBean, java.lang.String beanName) throws org.springframework.beans.BeansException
configureBean
in interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
configureBean
in class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
org.springframework.beans.BeansException
public java.lang.Object createBean(java.lang.Class<?> beanClass, int autowireMode, boolean dependencyCheck) throws org.springframework.beans.BeansException
createBean
in interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
createBean
in class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
org.springframework.beans.BeansException
public java.lang.Object autowire(java.lang.Class<?> beanClass, int autowireMode, boolean dependencyCheck) throws org.springframework.beans.BeansException
autowire
in interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
autowire
in class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
org.springframework.beans.BeansException
public void autowireBeanProperties(java.lang.Object existingBean, int autowireMode, boolean dependencyCheck) throws org.springframework.beans.BeansException
autowireBeanProperties
in interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
autowireBeanProperties
in class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
org.springframework.beans.BeansException
public void applyBeanPropertyValues(java.lang.Object existingBean, java.lang.String beanName) throws org.springframework.beans.BeansException
applyBeanPropertyValues
in interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
applyBeanPropertyValues
in class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
org.springframework.beans.BeansException
public java.lang.Object initializeBean(java.lang.Object existingBean, java.lang.String beanName) throws org.springframework.beans.BeansException
initializeBean
in interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
initializeBean
in class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
org.springframework.beans.BeansException
public void destroyBean(java.lang.Object existingBean)
destroyBean
in interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
destroyBean
in class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
public boolean containsLocalBean(java.lang.String name)
containsLocalBean
in interface org.springframework.beans.factory.HierarchicalBeanFactory
containsLocalBean
in class org.springframework.beans.factory.support.AbstractBeanFactory
public io.micronaut.context.BeanContext getBeanContext()
public boolean isAutowireCandidate(java.lang.String beanName, org.springframework.beans.factory.config.DependencyDescriptor descriptor) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isAutowireCandidate
in interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory
isAutowireCandidate
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
public org.springframework.beans.factory.config.BeanDefinition getBeanDefinition(java.lang.String beanName) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
getBeanDefinition
in interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory
getBeanDefinition
in interface org.springframework.beans.factory.support.BeanDefinitionRegistry
getBeanDefinition
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
protected <T> T doGetBean(java.lang.String name, java.lang.Class<T> requiredType, java.lang.Object[] args, boolean typeCheckOnly) throws org.springframework.beans.BeansException
doGetBean
in class org.springframework.beans.factory.support.AbstractBeanFactory
org.springframework.beans.BeansException
protected java.lang.Object getSingleton(java.lang.String beanName, boolean allowEarlyReference)
getSingleton
in class org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
public java.lang.Object getSingleton(java.lang.String beanName, org.springframework.beans.factory.ObjectFactory<?> singletonFactory)
getSingleton
in class org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
public java.util.Iterator<java.lang.String> getBeanNamesIterator()
getBeanNamesIterator
in interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory
getBeanNamesIterator
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
public boolean isFactoryBean(java.lang.String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
isFactoryBean
in interface org.springframework.beans.factory.config.ConfigurableBeanFactory
isFactoryBean
in class org.springframework.beans.factory.support.AbstractBeanFactory
org.springframework.beans.factory.NoSuchBeanDefinitionException
public void destroyBean(java.lang.String beanName, java.lang.Object beanInstance)
destroyBean
in interface org.springframework.beans.factory.config.ConfigurableBeanFactory
destroyBean
in class org.springframework.beans.factory.support.AbstractBeanFactory
public void registerSingleton(java.lang.String beanName, java.lang.Object singletonObject)
registerSingleton
in interface org.springframework.beans.factory.config.SingletonBeanRegistry
registerSingleton
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
public boolean containsSingleton(java.lang.String beanName)
containsSingleton
in interface org.springframework.beans.factory.config.SingletonBeanRegistry
containsSingleton
in class org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
public void registerBeanDefinition(java.lang.String beanName, org.springframework.beans.factory.config.BeanDefinition beanDefinition) throws org.springframework.beans.factory.BeanDefinitionStoreException
registerBeanDefinition
in interface org.springframework.beans.factory.support.BeanDefinitionRegistry
registerBeanDefinition
in class org.springframework.beans.factory.support.DefaultListableBeanFactory
org.springframework.beans.factory.BeanDefinitionStoreException
protected boolean isPrimary(java.lang.String beanName, java.lang.Object beanInstance)
isPrimary
in class org.springframework.beans.factory.support.DefaultListableBeanFactory