Class AbstractInitializableBeanDefinitionReference<T>

java.lang.Object
io.micronaut.context.AbstractInitializableBeanDefinitionReference<T>
Type Parameters:
T - The bean type
All Implemented Interfaces:
io.micronaut.core.annotation.AnnotationMetadata, io.micronaut.core.annotation.AnnotationMetadataDelegate, io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.beans.BeanInfo<T>, io.micronaut.core.order.Ordered, io.micronaut.core.type.ArgumentCoercible<T>, BeanContextConditional, BeanDefinitionReference<T>, BeanType<T>, QualifiedBeanType<T>

@Internal public abstract class AbstractInitializableBeanDefinitionReference<T> extends Object implements BeanDefinitionReference<T>
An uninitialized and unloaded component definition with basic information available regarding its requirements.
Since:
3.0
  • Field Summary

    Fields inherited from interface io.micronaut.core.annotation.AnnotationMetadata

    CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBER

    Fields inherited from interface io.micronaut.core.annotation.AnnotationSource

    EMPTY

    Fields inherited from interface io.micronaut.core.order.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    AbstractInitializableBeanDefinitionReference(String beanTypeName, String beanDefinitionTypeName, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, boolean isPrimary, boolean isContextScope, boolean isConditional, boolean isContainerType, boolean isSingleton, boolean isConfigurationProperties, boolean hasExposedTypes, boolean requiresMethodProcessing)
     
    protected
    AbstractInitializableBeanDefinitionReference(String beanTypeName, String beanDefinitionTypeName, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, boolean isPrimary, boolean isContextScope, boolean isConditional, boolean isContainerType, boolean isSingleton, boolean isConfigurationProperties, boolean hasExposedTypes, boolean requiresMethodProcessing, boolean isProxiedBean, boolean isProxyTarget)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    io.micronaut.core.annotation.AnnotationMetadata
     
     
    protected abstract Class<? extends BeanDefinition<?>>
    Implementors should provide an implementation of this method that returns the bean definition type.
    final @NonNull Set<Class<?>>
    Returns a potentially limited subset of bean types exposed by this bean.
     
    int
     
    boolean
     
    boolean
    Checks whether the bean type is a container type.
    boolean
     
    boolean
    Return whether this component is enabled for the given context.
    boolean
    isEnabled(BeanContext context, BeanResolutionContext resolutionContext)
    Return whether this component is enabled for the given context.
    boolean
     
    boolean
     
    boolean
    Returns whether another bean exists that proxies this bean.
    boolean
     
    boolean
     
    load(BeanContext context)
    Loads the bean definition for the current BeanContext.
    boolean
    By default, when the BeanContext is started, the BeanDefinition.getExecutableMethods() are not processed by registered ExecutableMethodProcessor instances unless this method returns true.
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadata

    enumValuesSet, enumValuesSet, getValues, hasDeclaredStereotype, hasEvaluatedExpressions, hasStereotypeNonRepeating, isAnnotationPresent, isDeclaredAnnotationPresent

    Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataDelegate

    booleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, copyAnnotationMetadata, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, findRepeatableAnnotation, findRepeatableAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByName, getAnnotationValuesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByName, getDeclaredAnnotationValuesByType, getDeclaredMetadata, getDeclaredStereotypeAnnotationNames, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getStereotypeAnnotationNames, getTargetAnnotationMetadata, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasPropertyExpressions, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isRepeatableAnnotation, isRepeatableAnnotation, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, stringValues, stringValues, synthesize, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType

    Methods inherited from interface io.micronaut.inject.BeanDefinitionReference

    load

    Methods inherited from interface io.micronaut.core.beans.BeanInfo

    asArgument, getGenericBeanType, getOrder

    Methods inherited from interface io.micronaut.inject.BeanType

    getBeanName, getBeanType, isCandidateBean

    Methods inherited from interface io.micronaut.inject.QualifiedBeanType

    getDeclaredQualifier, resolveDynamicQualifier
  • Constructor Details

    • AbstractInitializableBeanDefinitionReference

      public AbstractInitializableBeanDefinitionReference(String beanTypeName, String beanDefinitionTypeName, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, boolean isPrimary, boolean isContextScope, boolean isConditional, boolean isContainerType, boolean isSingleton, boolean isConfigurationProperties, boolean hasExposedTypes, boolean requiresMethodProcessing)
      Parameters:
      beanTypeName - The bean type name
      beanDefinitionTypeName - The bean definition type name
      annotationMetadata - The annotationMetadata
      isPrimary - Is primary bean?
      isContextScope - Is context scope?
      isConditional - Is conditional? = No @Requires
      isContainerType - Is container type?
      isSingleton - Is singleton?
      isConfigurationProperties - Is configuration properties?
      hasExposedTypes - Has exposed types?
      requiresMethodProcessing - Is requires method processing?
    • AbstractInitializableBeanDefinitionReference

      protected AbstractInitializableBeanDefinitionReference(String beanTypeName, String beanDefinitionTypeName, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, boolean isPrimary, boolean isContextScope, boolean isConditional, boolean isContainerType, boolean isSingleton, boolean isConfigurationProperties, boolean hasExposedTypes, boolean requiresMethodProcessing, boolean isProxiedBean, boolean isProxyTarget)
      Parameters:
      beanTypeName - The bean type name
      beanDefinitionTypeName - The bean definition type name
      annotationMetadata - The annotationMetadata
      isPrimary - Is primary bean?
      isContextScope - Is context scope?
      isConditional - Is conditional? = No @Requires
      isContainerType - Is container type?
      isSingleton - Is singleton?
      isConfigurationProperties - Is configuration properties?
      hasExposedTypes - Has exposed types?
      requiresMethodProcessing - Is requires method processing?
      isProxiedBean - Is the bean proxied
      isProxyTarget - Is the bean a retained proxy target
  • Method Details