Interface DelegatingBeanDefinition<T>

Type Parameters:
T - The bean definition type
All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadata, io.micronaut.core.annotation.AnnotationMetadataDelegate, io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource, io.micronaut.core.type.ArgumentCoercible<T>, BeanContextConditional, BeanDefinition<T>, io.micronaut.core.beans.BeanInfo<T>, BeanType<T>, io.micronaut.core.naming.Named, QualifiedBeanType<T>

public interface DelegatingBeanDefinition<T> extends BeanDefinition<T>
An interface for wrapping a BeanDefinition with another that delegates and potentially decorates the BeanDefinition instance.
Since:
1.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
  • Method Summary

    Modifier and Type
    Method
    Description
    default <R> Optional<ExecutableMethod<T,R>>
    findMethod(String name, Class<?>... argumentTypes)
    Finds a single ExecutableMethod for the given name and argument types.
    default <R> Stream<ExecutableMethod<T,R>>
    Finds possible methods for the given method name.
    default io.micronaut.core.annotation.AnnotationMetadata
     
    default Class<T>
    Returns the bean type.
    The single concrete constructor that is an injection point for creating the bean.
    default Optional<Class<?>>
     
     
    All the fields that require injection.
    All methods that require injection.
    default @NonNull String
     
    All the methods that should be called once the bean has been fully initialized and constructed.
    All the methods that should be called when the object is to be destroyed.
    default Collection<Class<?>>
     
    default <R> ExecutableMethod<T,R>
    getRequiredMethod(String name, Class<?>... argumentTypes)
    Finds a single ExecutableMethod for the given name and argument types.
    default Optional<Class<? extends Annotation>>
     
    default Optional<String>
     
     
    default @NonNull List<io.micronaut.core.type.Argument<?>>
    Return the type arguments for the given interface or super type for this bean.
    default boolean
     
    default boolean
    isEnabled(@NonNull BeanContext context, @Nullable BeanResolutionContext resolutionContext)
    Return whether this component is enabled for the given context.
    default boolean
    Return whether this component is enabled for the given context.
    default boolean
     
    default boolean
     
    default boolean
     
    default 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 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.BeanType

    getBeanName, getExposedTypes, isContainerType