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

    Constructors
    Constructor
    Description
    MicronautBeanFactory(io.micronaut.context.BeanContext beanContext, SpringAwareListener awareListener, MicronautBeanFactoryConfiguration configuration)
    The default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyBeanPropertyValues(Object existingBean, String beanName)
     
    autowire(Class<?> beanClass, int autowireMode, boolean dependencyCheck)
     
    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
     
    boolean
     
    <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
    doGetBean(String name, Class<T> requiredType, Object[] args, boolean typeCheckOnly)
     
    <A extends Annotation>
    A
    findAnnotationOnBean(@NonNull String beanName, @NonNull Class<A> annotationType)
     
    <T> T
    getBean(@NonNull Class<T> requiredType)
     
    <T> T
    getBean(@NonNull Class<T> requiredType, @NonNull Object... args)
     
    @NonNull Object
    getBean(@NonNull String name)
     
    <T> T
    getBean(@NonNull String name, @NonNull Class<T> requiredType)
     
    @NonNull Object
    getBean(@NonNull String name, @NonNull Object... args)
     
    io.micronaut.context.BeanContext
     
    org.springframework.beans.factory.config.BeanDefinition
     
    int
     
    @NonNull String[]
     
    @NonNull String[]
    getBeanNamesForAnnotation(@NonNull Class<? extends Annotation> annotationType)
     
    @NonNull String[]
    getBeanNamesForType(@NonNull org.springframework.core.ResolvableType type)
     
    @NonNull String[]
     
    @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)
     
    <T> @NonNull Map<String,T>
    getBeansOfType(Class<T> type, boolean includeNonSingletons, boolean allowEagerInit)
     
    protected Object
    getSingleton(String beanName, boolean allowEarlyReference)
     
    getSingleton(String beanName, org.springframework.beans.factory.ObjectFactory<?> singletonFactory)
     
    getType(@NonNull String beanName)
     
    initializeBean(Object existingBean, String beanName)
     
    boolean
    isAutowireCandidate(String beanName, org.springframework.beans.factory.config.DependencyDescriptor descriptor)
     
    boolean
     
    protected boolean
    isPrimary(String beanName, Object beanInstance)
     
    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 context
      awareListener - The spring aware listener
      configuration - 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 interface org.springframework.beans.factory.BeanFactory
      Overrides:
      getBean in class org.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 interface org.springframework.beans.factory.BeanFactory
      Overrides:
      getBean in class org.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 interface org.springframework.beans.factory.BeanFactory
      Overrides:
      getBean in class org.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 interface org.springframework.beans.factory.BeanFactory
      Overrides:
      getBean in class org.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 interface org.springframework.beans.factory.BeanFactory
      Overrides:
      getBean in class org.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 interface org.springframework.beans.factory.BeanFactory
      Overrides:
      getBeanProvider in class org.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 interface org.springframework.beans.factory.BeanFactory
      Overrides:
      getBeanProvider in class org.springframework.beans.factory.support.DefaultListableBeanFactory
    • containsBean

      public boolean containsBean(@NonNull @NonNull String name)
      Specified by:
      containsBean in interface org.springframework.beans.factory.BeanFactory
      Overrides:
      containsBean in class org.springframework.beans.factory.support.AbstractBeanFactory
    • isSingleton

      public boolean isSingleton(@NonNull @NonNull String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
      Specified by:
      isSingleton in interface org.springframework.beans.factory.BeanFactory
      Overrides:
      isSingleton in class org.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 interface org.springframework.beans.factory.BeanFactory
      Overrides:
      isPrototype in class org.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 interface org.springframework.beans.factory.BeanFactory
      Overrides:
      isTypeMatch in class org.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 interface org.springframework.beans.factory.BeanFactory
      Overrides:
      isTypeMatch in class org.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 interface org.springframework.beans.factory.BeanFactory
      Overrides:
      getType in class org.springframework.beans.factory.support.AbstractBeanFactory
      Throws:
      org.springframework.beans.factory.NoSuchBeanDefinitionException
    • containsBeanDefinition

      public boolean containsBeanDefinition(@NonNull @NonNull String beanName)
      Specified by:
      containsBeanDefinition in interface org.springframework.beans.factory.support.BeanDefinitionRegistry
      Specified by:
      containsBeanDefinition in interface org.springframework.beans.factory.ListableBeanFactory
      Overrides:
      containsBeanDefinition in class org.springframework.beans.factory.support.DefaultListableBeanFactory
    • getBeanDefinitionCount

      public int getBeanDefinitionCount()
      Specified by:
      getBeanDefinitionCount in interface org.springframework.beans.factory.support.BeanDefinitionRegistry
      Specified by:
      getBeanDefinitionCount in interface org.springframework.beans.factory.ListableBeanFactory
      Overrides:
      getBeanDefinitionCount in class org.springframework.beans.factory.support.DefaultListableBeanFactory
    • getBeanDefinitionNames

      @NonNull public @NonNull String[] getBeanDefinitionNames()
      Specified by:
      getBeanDefinitionNames in interface org.springframework.beans.factory.support.BeanDefinitionRegistry
      Specified by:
      getBeanDefinitionNames in interface org.springframework.beans.factory.ListableBeanFactory
      Overrides:
      getBeanDefinitionNames in class org.springframework.beans.factory.support.DefaultListableBeanFactory
    • getBeanNamesForType

      @NonNull public @NonNull String[] getBeanNamesForType(@NonNull @NonNull org.springframework.core.ResolvableType type)
      Specified by:
      getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactory
      Overrides:
      getBeanNamesForType in class org.springframework.beans.factory.support.DefaultListableBeanFactory
    • getBeanNamesForType

      @NonNull public @NonNull String[] getBeanNamesForType(Class<?> type)
      Specified by:
      getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactory
      Overrides:
      getBeanNamesForType in class org.springframework.beans.factory.support.DefaultListableBeanFactory
    • getBeanNamesForType

      @NonNull public @NonNull String[] getBeanNamesForType(Class<?> type, boolean includeNonSingletons, boolean allowEagerInit)
      Specified by:
      getBeanNamesForType in interface org.springframework.beans.factory.ListableBeanFactory
      Overrides:
      getBeanNamesForType in class org.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 interface org.springframework.beans.factory.ListableBeanFactory
      Overrides:
      getBeansOfType in class org.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 interface org.springframework.beans.factory.ListableBeanFactory
      Overrides:
      getBeanNamesForAnnotation in class org.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 interface org.springframework.beans.factory.ListableBeanFactory
      Overrides:
      findAnnotationOnBean in class org.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 interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
      Overrides:
      createBean in class org.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 interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
      Overrides:
      autowireBean in class org.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 interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
      Overrides:
      configureBean in class org.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 interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
      Overrides:
      createBean in class org.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 interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
      Overrides:
      autowire in class org.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 interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
      Overrides:
      autowireBeanProperties in class org.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 interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
      Overrides:
      applyBeanPropertyValues in class org.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 interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
      Overrides:
      initializeBean in class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
      Throws:
      org.springframework.beans.BeansException
    • destroyBean

      public void destroyBean(Object existingBean)
      Specified by:
      destroyBean in interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
      Overrides:
      destroyBean in class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
    • containsLocalBean

      public boolean containsLocalBean(String name)
      Specified by:
      containsLocalBean in interface org.springframework.beans.factory.HierarchicalBeanFactory
      Overrides:
      containsLocalBean in class org.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 interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory
      Overrides:
      isAutowireCandidate in class org.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 interface org.springframework.beans.factory.support.BeanDefinitionRegistry
      Specified by:
      getBeanDefinition in interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory
      Overrides:
      getBeanDefinition in class org.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 class org.springframework.beans.factory.support.AbstractBeanFactory
      Throws:
      org.springframework.beans.BeansException
    • getSingleton

      protected Object getSingleton(String beanName, boolean allowEarlyReference)
      Overrides:
      getSingleton in class org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
    • getSingleton

      public Object getSingleton(String beanName, org.springframework.beans.factory.ObjectFactory<?> singletonFactory)
      Overrides:
      getSingleton in class org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
    • getBeanNamesIterator

      public Iterator<String> getBeanNamesIterator()
      Specified by:
      getBeanNamesIterator in interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory
      Overrides:
      getBeanNamesIterator in class org.springframework.beans.factory.support.DefaultListableBeanFactory
    • isFactoryBean

      public boolean isFactoryBean(String name) throws org.springframework.beans.factory.NoSuchBeanDefinitionException
      Specified by:
      isFactoryBean in interface org.springframework.beans.factory.config.ConfigurableBeanFactory
      Overrides:
      isFactoryBean in class org.springframework.beans.factory.support.AbstractBeanFactory
      Throws:
      org.springframework.beans.factory.NoSuchBeanDefinitionException
    • destroyBean

      public void destroyBean(String beanName, Object beanInstance)
      Specified by:
      destroyBean in interface org.springframework.beans.factory.config.ConfigurableBeanFactory
      Overrides:
      destroyBean in class org.springframework.beans.factory.support.AbstractBeanFactory
    • registerSingleton

      public void registerSingleton(String beanName, Object singletonObject)
      Specified by:
      registerSingleton in interface org.springframework.beans.factory.config.SingletonBeanRegistry
      Overrides:
      registerSingleton in class org.springframework.beans.factory.support.DefaultListableBeanFactory
    • containsSingleton

      public boolean containsSingleton(String beanName)
      Specified by:
      containsSingleton in interface org.springframework.beans.factory.config.SingletonBeanRegistry
      Overrides:
      containsSingleton in class org.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 interface org.springframework.beans.factory.support.BeanDefinitionRegistry
      Overrides:
      registerBeanDefinition in class org.springframework.beans.factory.support.DefaultListableBeanFactory
      Throws:
      org.springframework.beans.factory.BeanDefinitionStoreException
    • isPrimary

      protected boolean isPrimary(String beanName, Object beanInstance)
      Overrides:
      isPrimary in class org.springframework.beans.factory.support.DefaultListableBeanFactory