Class MicronautBeanFactory
java.lang.Object
org.springframework.core.SimpleAliasRegistry
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
org.springframework.beans.factory.support.FactoryBeanRegistrySupport
org.springframework.beans.factory.support.AbstractBeanFactory
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
org.springframework.beans.factory.support.DefaultListableBeanFactory
io.micronaut.spring.context.factory.MicronautBeanFactory
- All Implemented Interfaces:
MicronautContextInternal
,Serializable
,org.springframework.beans.factory.BeanFactory
,org.springframework.beans.factory.config.AutowireCapableBeanFactory
,org.springframework.beans.factory.config.ConfigurableBeanFactory
,org.springframework.beans.factory.config.ConfigurableListableBeanFactory
,org.springframework.beans.factory.config.SingletonBeanRegistry
,org.springframework.beans.factory.HierarchicalBeanFactory
,org.springframework.beans.factory.ListableBeanFactory
,org.springframework.beans.factory.support.BeanDefinitionRegistry
,org.springframework.core.AliasRegistry
@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, MicronautContextInternal
Implementation of the
ListableBeanFactory
interface for Micronaut.- Since:
- 1.0
- Author:
- graemerocher
- See Also:
-
Field Summary
Fields inherited from class org.springframework.core.SimpleAliasRegistry
logger
Fields inherited from interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
AUTOWIRE_AUTODETECT, AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_CONSTRUCTOR, AUTOWIRE_NO, ORIGINAL_INSTANCE_SUFFIX
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
Fields inherited from interface org.springframework.beans.factory.config.ConfigurableBeanFactory
SCOPE_PROTOTYPE, SCOPE_SINGLETON
-
Constructor Summary
ConstructorDescriptionMicronautBeanFactory
(io.micronaut.context.BeanContext beanContext, SpringAwareListener awareListener, MicronautBeanFactoryConfiguration configuration) The default constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
applyBeanPropertyValues
(Object existingBean, String beanName) void
autowireBean
(@NonNull Object existingBean) void
autowireBeanProperties
(Object existingBean, int autowireMode, boolean dependencyCheck) configureBean
(Object existingBean, String beanName) boolean
containsBean
(@NonNull String name) boolean
containsBeanDefinition
(@NonNull String beanName) boolean
containsLocalBean
(String name) boolean
containsSingleton
(String beanName) <T> T
createBean
(@NonNull Class<T> beanClass) createBean
(Class<?> beanClass, int autowireMode, boolean dependencyCheck) void
destroyBean
(Object existingBean) void
destroyBean
(String beanName, Object beanInstance) protected <T> T
<A extends Annotation>
AfindAnnotationOnBean
(@NonNull String beanName, @NonNull Class<A> annotationType) <T> T
<T> T
@NonNull Object
<T> T
@NonNull Object
io.micronaut.context.BeanContext
org.springframework.beans.factory.config.BeanDefinition
getBeanDefinition
(String beanName) int
@NonNull String[]
@NonNull String[]
getBeanNamesForAnnotation
(@NonNull Class<? extends Annotation> annotationType) @NonNull String[]
getBeanNamesForType
(@NonNull org.springframework.core.ResolvableType type) @NonNull String[]
getBeanNamesForType
(Class<?> type) @NonNull String[]
getBeanNamesForType
(Class<?> type, boolean includeNonSingletons, boolean allowEagerInit) <T> @NonNull org.springframework.beans.factory.ObjectProvider<T>
getBeanProvider
(@NonNull Class<T> requiredType) <T> @NonNull org.springframework.beans.factory.ObjectProvider<T>
getBeanProvider
(@NonNull org.springframework.core.ResolvableType requiredType) getBeansOfType
(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit) protected Object
getSingleton
(String beanName, boolean allowEarlyReference) getSingleton
(String beanName, org.springframework.beans.factory.ObjectFactory<?> singletonFactory) Class<?>
initializeBean
(Object existingBean, String beanName) boolean
isAutowireCandidate
(String beanName, org.springframework.beans.factory.config.DependencyDescriptor descriptor) boolean
isFactoryBean
(String name) protected boolean
boolean
isPrototype
(@NonNull String name) protected boolean
isSingleton
(@NonNull io.micronaut.inject.BeanDefinitionReference<?> definition) Is the definition singleton.boolean
isSingleton
(@NonNull String name) static boolean
isSingleton
(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) Shared logic for Micronaut singleton rules.boolean
isTypeMatch
(@NonNull String name, @NonNull Class<?> typeToMatch) boolean
isTypeMatch
(@NonNull String name, @NonNull org.springframework.core.ResolvableType typeToMatch) void
registerBeanDefinition
(String beanName, org.springframework.beans.factory.config.BeanDefinition beanDefinition) void
registerSingleton
(String beanName, Object singletonObject) Methods inherited from class org.springframework.beans.factory.support.DefaultListableBeanFactory
allowAliasOverriding, checkForAliasCircle, clearMergedBeanDefinition, clearMetadataCache, copyConfigurationFrom, destroySingleton, destroySingletons, determineAutowireCandidate, determineHighestPriorityCandidate, determinePrimaryCandidate, doResolveDependency, findAllAnnotationsOnBean, findAnnotationOnBean, findAutowireCandidates, freezeConfiguration, getAutowireCandidateResolver, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeansOfType, getBeansWithAnnotation, getDependencyComparator, getPriority, getSerializationId, isAllowBeanDefinitionOverriding, isAllowEagerClassLoading, isAutowireCandidate, isAutowireCandidate, isBeanDefinitionOverridable, isBeanEligibleForMetadataCaching, isConfigurationFrozen, matchesBeanName, obtainInstanceFromSupplier, preInstantiateSingletons, registerResolvableDependency, removeBeanDefinition, resetBeanDefinition, resolveDependency, resolveNamedBean, setAllowBeanDefinitionOverriding, setAllowEagerClassLoading, setAutowireCandidateResolver, setDependencyComparator, setSerializationId, toString, writeReplace
Methods inherited from class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
applyBeanPostProcessorsAfterInitialization, applyBeanPostProcessorsBeforeInitialization, applyBeanPostProcessorsBeforeInstantiation, applyMergedBeanDefinitionPostProcessors, applyPropertyValues, autowireByName, autowireByType, autowireConstructor, checkDependencies, clearSingletonCache, createBean, createBeanInstance, determineConstructorsFromBeanPostProcessors, determineTargetType, doCreateBean, filterPropertyDescriptorsForDependencyCheck, filterPropertyDescriptorsForDependencyCheck, getEarlyBeanReference, getInstantiationStrategy, getObjectForBeanInstance, getParameterNameDiscoverer, getTypeForFactoryBean, getTypeForFactoryMethod, ignoreDependencyInterface, ignoreDependencyType, initializeBean, instantiateBean, instantiateUsingFactoryMethod, invokeCustomInitMethod, invokeInitMethods, isAllowCircularReferences, isAllowRawInjectionDespiteWrapping, isExcludedFromDependencyCheck, populateBean, postProcessObjectFromFactoryBean, predictBeanType, removeSingleton, resolveBeanByName, resolveBeforeInstantiation, resolveDependency, setAllowCircularReferences, setAllowRawInjectionDespiteWrapping, setInstantiationStrategy, setParameterNameDiscoverer, unsatisfiedNonSimpleProperties
Methods inherited from class org.springframework.beans.factory.support.AbstractBeanFactory
addBeanPostProcessor, addBeanPostProcessors, addEmbeddedValueResolver, addPropertyEditorRegistrar, afterPrototypeCreation, beforePrototypeCreation, checkMergedBeanDefinition, cleanupAfterBeanCreationFailure, copyRegisteredEditorsTo, destroyBean, destroyScopedBean, evaluateBeanDefinitionString, getAliases, getApplicationStartup, 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, setApplicationStartup, setBeanClassLoader, setBeanExpressionResolver, setCacheBeanMetadata, setConversionService, setParentBeanFactory, setTempClassLoader, setTypeConverter, transformedBeanName
Methods inherited from class org.springframework.beans.factory.support.FactoryBeanRegistrySupport
getCachedObjectForFactoryBean, getFactoryBean, getObjectFromFactoryBean, getTypeForFactoryBean
Methods inherited from class org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
addSingleton, addSingletonFactory, afterSingletonCreation, beforeSingletonCreation, destroyBean, getDependenciesForBean, getDependentBeans, getSingleton, getSingletonCount, getSingletonMutex, getSingletonNames, hasDependentBean, isCurrentlyInCreation, isDependent, isSingletonCurrentlyInCreation, onSuppressedException, registerContainedBean, registerDependentBean, registerDisposableBean, setCurrentlyInCreation
Methods inherited from class org.springframework.core.SimpleAliasRegistry
canonicalName, hasAlias, isAlias, registerAlias, removeAlias, resolveAliases
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.core.AliasRegistry
getAliases, isAlias, registerAlias, removeAlias
Methods inherited from interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
applyBeanPostProcessorsAfterInitialization, applyBeanPostProcessorsBeforeInitialization, resolveBeanByName, resolveDependency, resolveDependency, resolveNamedBean
Methods inherited from interface org.springframework.beans.factory.support.BeanDefinitionRegistry
isBeanNameInUse
Methods inherited from interface org.springframework.beans.factory.BeanFactory
getAliases, getType
Methods inherited from interface org.springframework.beans.factory.config.ConfigurableBeanFactory
addBeanPostProcessor, addEmbeddedValueResolver, addPropertyEditorRegistrar, copyConfigurationFrom, copyRegisteredEditorsTo, destroyScopedBean, destroySingletons, getApplicationStartup, getBeanClassLoader, getBeanExpressionResolver, getBeanPostProcessorCount, getConversionService, getDependenciesForBean, getDependentBeans, getMergedBeanDefinition, getRegisteredScope, getRegisteredScopeNames, getTempClassLoader, getTypeConverter, hasEmbeddedValueResolver, isCacheBeanMetadata, isCurrentlyInCreation, registerAlias, registerCustomEditor, registerDependentBean, registerScope, resolveAliases, resolveEmbeddedValue, setApplicationStartup, setBeanClassLoader, setBeanExpressionResolver, setCacheBeanMetadata, setConversionService, setCurrentlyInCreation, setParentBeanFactory, setTempClassLoader, setTypeConverter
Methods inherited from interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory
clearMetadataCache, freezeConfiguration, ignoreDependencyInterface, ignoreDependencyType, isConfigurationFrozen, preInstantiateSingletons, registerResolvableDependency
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
getParentBeanFactory
Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory
findAllAnnotationsOnBean, findAnnotationOnBean, getBeanNamesForType, getBeanProvider, getBeanProvider, getBeansOfType, getBeansWithAnnotation
Methods inherited from interface org.springframework.beans.factory.config.SingletonBeanRegistry
getSingleton, getSingletonCount, getSingletonMutex, getSingletonNames
-
Constructor Details
-
MicronautBeanFactory
public MicronautBeanFactory(io.micronaut.context.BeanContext beanContext, SpringAwareListener awareListener, MicronautBeanFactoryConfiguration configuration) The default constructor.- Parameters:
beanContext
- The target Micronaut contextawareListener
- The spring aware listenerconfiguration
- Configuration
-
-
Method Details
-
isSingleton
public static boolean isSingleton(io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) Shared logic for Micronaut singleton rules.- Parameters:
annotationMetadata
- The metadata- Returns:
- True if is singleton
-
getBean
@NonNull public @NonNull Object getBean(@NonNull @NonNull String name) throws org.springframework.beans.BeansException - Specified by:
getBean
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
getBean
in classorg.springframework.beans.factory.support.AbstractBeanFactory
- Throws:
org.springframework.beans.BeansException
-
getBean
@NonNull public <T> T getBean(@NonNull @NonNull String name, @NonNull @NonNull Class<T> requiredType) throws org.springframework.beans.BeansException - Specified by:
getBean
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
getBean
in classorg.springframework.beans.factory.support.AbstractBeanFactory
- Throws:
org.springframework.beans.BeansException
-
getBean
@NonNull public @NonNull Object getBean(@NonNull @NonNull String name, @NonNull @NonNull Object... args) throws org.springframework.beans.BeansException - Specified by:
getBean
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
getBean
in classorg.springframework.beans.factory.support.AbstractBeanFactory
- Throws:
org.springframework.beans.BeansException
-
getBean
@NonNull public <T> T getBean(@NonNull @NonNull Class<T> requiredType) throws org.springframework.beans.BeansException - Specified by:
getBean
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
getBean
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
- Throws:
org.springframework.beans.BeansException
-
getBean
@NonNull public <T> T getBean(@NonNull @NonNull Class<T> requiredType, @NonNull @NonNull Object... args) throws org.springframework.beans.BeansException - Specified by:
getBean
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
getBean
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
- Throws:
org.springframework.beans.BeansException
-
getBeanProvider
@NonNull public <T> @NonNull org.springframework.beans.factory.ObjectProvider<T> getBeanProvider(@NonNull @NonNull Class<T> requiredType) - Specified by:
getBeanProvider
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
getBeanProvider
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
-
getBeanProvider
@NonNull public <T> @NonNull org.springframework.beans.factory.ObjectProvider<T> getBeanProvider(@NonNull @NonNull org.springframework.core.ResolvableType requiredType) - Specified by:
getBeanProvider
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
getBeanProvider
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
-
containsBean
- Specified by:
containsBean
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
containsBean
in classorg.springframework.beans.factory.support.AbstractBeanFactory
-
isSingleton
public boolean isSingleton(@NonNull @NonNull String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException - Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
isSingleton
in classorg.springframework.beans.factory.support.AbstractBeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
-
isSingleton
protected boolean isSingleton(@NonNull @NonNull io.micronaut.inject.BeanDefinitionReference<?> definition) Is the definition singleton.- Parameters:
definition
- The definition- Returns:
- True if it is
-
isPrototype
public boolean isPrototype(@NonNull @NonNull String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException - Specified by:
isPrototype
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
isPrototype
in classorg.springframework.beans.factory.support.AbstractBeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
-
isTypeMatch
public boolean isTypeMatch(@NonNull @NonNull String name, @NonNull @NonNull org.springframework.core.ResolvableType typeToMatch) throws org.springframework.beans.factory.NoSuchBeanDefinitionException - Specified by:
isTypeMatch
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
isTypeMatch
in classorg.springframework.beans.factory.support.AbstractBeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
-
isTypeMatch
public boolean isTypeMatch(@NonNull @NonNull String name, @NonNull @NonNull Class<?> typeToMatch) throws org.springframework.beans.factory.NoSuchBeanDefinitionException - Specified by:
isTypeMatch
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
isTypeMatch
in classorg.springframework.beans.factory.support.AbstractBeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
-
getType
public Class<?> getType(@NonNull @NonNull String beanName) throws org.springframework.beans.factory.NoSuchBeanDefinitionException - Specified by:
getType
in interfaceorg.springframework.beans.factory.BeanFactory
- Overrides:
getType
in classorg.springframework.beans.factory.support.AbstractBeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
-
containsBeanDefinition
- Specified by:
containsBeanDefinition
in interfaceorg.springframework.beans.factory.support.BeanDefinitionRegistry
- Specified by:
containsBeanDefinition
in interfaceorg.springframework.beans.factory.ListableBeanFactory
- Overrides:
containsBeanDefinition
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
-
getBeanDefinitionCount
public int getBeanDefinitionCount()- Specified by:
getBeanDefinitionCount
in interfaceorg.springframework.beans.factory.support.BeanDefinitionRegistry
- Specified by:
getBeanDefinitionCount
in interfaceorg.springframework.beans.factory.ListableBeanFactory
- Overrides:
getBeanDefinitionCount
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
-
getBeanDefinitionNames
- Specified by:
getBeanDefinitionNames
in interfaceorg.springframework.beans.factory.support.BeanDefinitionRegistry
- Specified by:
getBeanDefinitionNames
in interfaceorg.springframework.beans.factory.ListableBeanFactory
- Overrides:
getBeanDefinitionNames
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
-
getBeanNamesForType
@NonNull public @NonNull String[] getBeanNamesForType(@NonNull @NonNull org.springframework.core.ResolvableType type) - Specified by:
getBeanNamesForType
in interfaceorg.springframework.beans.factory.ListableBeanFactory
- Overrides:
getBeanNamesForType
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
-
getBeanNamesForType
- Specified by:
getBeanNamesForType
in interfaceorg.springframework.beans.factory.ListableBeanFactory
- Overrides:
getBeanNamesForType
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
-
getBeanNamesForType
@NonNull public @NonNull String[] getBeanNamesForType(Class<?> type, boolean includeNonSingletons, boolean allowEagerInit) - Specified by:
getBeanNamesForType
in interfaceorg.springframework.beans.factory.ListableBeanFactory
- Overrides:
getBeanNamesForType
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
-
getBeansOfType
@NonNull public <T> @NonNull Map<String,T> getBeansOfType(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit) throws org.springframework.beans.BeansException - Specified by:
getBeansOfType
in interfaceorg.springframework.beans.factory.ListableBeanFactory
- Overrides:
getBeansOfType
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
- Throws:
org.springframework.beans.BeansException
-
getBeanNamesForAnnotation
@NonNull public @NonNull String[] getBeanNamesForAnnotation(@NonNull @NonNull Class<? extends Annotation> annotationType) - Specified by:
getBeanNamesForAnnotation
in interfaceorg.springframework.beans.factory.ListableBeanFactory
- Overrides:
getBeanNamesForAnnotation
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
-
findAnnotationOnBean
public <A extends Annotation> A findAnnotationOnBean(@NonNull @NonNull String beanName, @NonNull @NonNull Class<A> annotationType) throws org.springframework.beans.factory.NoSuchBeanDefinitionException - Specified by:
findAnnotationOnBean
in interfaceorg.springframework.beans.factory.ListableBeanFactory
- Overrides:
findAnnotationOnBean
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
-
createBean
@NonNull public <T> T createBean(@NonNull @NonNull Class<T> beanClass) throws org.springframework.beans.BeansException - Specified by:
createBean
in interfaceorg.springframework.beans.factory.config.AutowireCapableBeanFactory
- Overrides:
createBean
in classorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
- Throws:
org.springframework.beans.BeansException
-
autowireBean
public void autowireBean(@NonNull @NonNull Object existingBean) throws org.springframework.beans.BeansException - Specified by:
autowireBean
in interfaceorg.springframework.beans.factory.config.AutowireCapableBeanFactory
- Overrides:
autowireBean
in classorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
- Throws:
org.springframework.beans.BeansException
-
configureBean
public Object configureBean(Object existingBean, String beanName) throws org.springframework.beans.BeansException - Specified by:
configureBean
in interfaceorg.springframework.beans.factory.config.AutowireCapableBeanFactory
- Overrides:
configureBean
in classorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
- Throws:
org.springframework.beans.BeansException
-
createBean
public Object createBean(Class<?> beanClass, int autowireMode, boolean dependencyCheck) throws org.springframework.beans.BeansException - Specified by:
createBean
in interfaceorg.springframework.beans.factory.config.AutowireCapableBeanFactory
- Overrides:
createBean
in classorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
- Throws:
org.springframework.beans.BeansException
-
autowire
public Object autowire(Class<?> beanClass, int autowireMode, boolean dependencyCheck) throws org.springframework.beans.BeansException - Specified by:
autowire
in interfaceorg.springframework.beans.factory.config.AutowireCapableBeanFactory
- Overrides:
autowire
in classorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
- Throws:
org.springframework.beans.BeansException
-
autowireBeanProperties
public void autowireBeanProperties(Object existingBean, int autowireMode, boolean dependencyCheck) throws org.springframework.beans.BeansException - Specified by:
autowireBeanProperties
in interfaceorg.springframework.beans.factory.config.AutowireCapableBeanFactory
- Overrides:
autowireBeanProperties
in classorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
- Throws:
org.springframework.beans.BeansException
-
applyBeanPropertyValues
public void applyBeanPropertyValues(Object existingBean, String beanName) throws org.springframework.beans.BeansException - Specified by:
applyBeanPropertyValues
in interfaceorg.springframework.beans.factory.config.AutowireCapableBeanFactory
- Overrides:
applyBeanPropertyValues
in classorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
- Throws:
org.springframework.beans.BeansException
-
initializeBean
public Object initializeBean(Object existingBean, String beanName) throws org.springframework.beans.BeansException - Specified by:
initializeBean
in interfaceorg.springframework.beans.factory.config.AutowireCapableBeanFactory
- Overrides:
initializeBean
in classorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
- Throws:
org.springframework.beans.BeansException
-
destroyBean
- Specified by:
destroyBean
in interfaceorg.springframework.beans.factory.config.AutowireCapableBeanFactory
- Overrides:
destroyBean
in classorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
-
containsLocalBean
- Specified by:
containsLocalBean
in interfaceorg.springframework.beans.factory.HierarchicalBeanFactory
- Overrides:
containsLocalBean
in classorg.springframework.beans.factory.support.AbstractBeanFactory
-
getBeanContext
public io.micronaut.context.BeanContext getBeanContext()- Returns:
- The backing Micronaut bean context.
-
isAutowireCandidate
public boolean isAutowireCandidate(String beanName, org.springframework.beans.factory.config.DependencyDescriptor descriptor) throws org.springframework.beans.factory.NoSuchBeanDefinitionException - Specified by:
isAutowireCandidate
in interfaceorg.springframework.beans.factory.config.ConfigurableListableBeanFactory
- Overrides:
isAutowireCandidate
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
-
getBeanDefinition
public org.springframework.beans.factory.config.BeanDefinition getBeanDefinition(String beanName) throws org.springframework.beans.factory.NoSuchBeanDefinitionException - Specified by:
getBeanDefinition
in interfaceorg.springframework.beans.factory.support.BeanDefinitionRegistry
- Specified by:
getBeanDefinition
in interfaceorg.springframework.beans.factory.config.ConfigurableListableBeanFactory
- Overrides:
getBeanDefinition
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
-
doGetBean
protected <T> T doGetBean(String name, Class<T> requiredType, Object[] args, boolean typeCheckOnly) throws org.springframework.beans.BeansException - Overrides:
doGetBean
in classorg.springframework.beans.factory.support.AbstractBeanFactory
- Throws:
org.springframework.beans.BeansException
-
getSingleton
- Overrides:
getSingleton
in classorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry
-
getSingleton
public Object getSingleton(String beanName, org.springframework.beans.factory.ObjectFactory<?> singletonFactory) - Overrides:
getSingleton
in classorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry
-
getBeanNamesIterator
- Specified by:
getBeanNamesIterator
in interfaceorg.springframework.beans.factory.config.ConfigurableListableBeanFactory
- Overrides:
getBeanNamesIterator
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
-
isFactoryBean
public boolean isFactoryBean(String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException - Specified by:
isFactoryBean
in interfaceorg.springframework.beans.factory.config.ConfigurableBeanFactory
- Overrides:
isFactoryBean
in classorg.springframework.beans.factory.support.AbstractBeanFactory
- Throws:
org.springframework.beans.factory.NoSuchBeanDefinitionException
-
destroyBean
- Specified by:
destroyBean
in interfaceorg.springframework.beans.factory.config.ConfigurableBeanFactory
- Overrides:
destroyBean
in classorg.springframework.beans.factory.support.AbstractBeanFactory
-
registerSingleton
- Specified by:
registerSingleton
in interfaceorg.springframework.beans.factory.config.SingletonBeanRegistry
- Overrides:
registerSingleton
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
-
containsSingleton
- Specified by:
containsSingleton
in interfaceorg.springframework.beans.factory.config.SingletonBeanRegistry
- Overrides:
containsSingleton
in classorg.springframework.beans.factory.support.DefaultSingletonBeanRegistry
-
registerBeanDefinition
public void registerBeanDefinition(String beanName, org.springframework.beans.factory.config.BeanDefinition beanDefinition) throws org.springframework.beans.factory.BeanDefinitionStoreException - Specified by:
registerBeanDefinition
in interfaceorg.springframework.beans.factory.support.BeanDefinitionRegistry
- Overrides:
registerBeanDefinition
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
- Throws:
org.springframework.beans.factory.BeanDefinitionStoreException
-
isPrimary
- Overrides:
isPrimary
in classorg.springframework.beans.factory.support.DefaultListableBeanFactory
-