Class AbstractInitializableBeanDefinition<T>
- Type Parameters:
T- The Bean definition type
- All Implemented Interfaces:
BeanContextConfigurable, EnvironmentConfigurable, AnnotationMetadata, AnnotationMetadataDelegate, AnnotationMetadataProvider, AnnotationSource, BeanInfo<T>, Named, Ordered, ArgumentCoercible<T>, BeanContextConditional, BeanDefinition<T>, BeanType<T>, InjectableBeanDefinition<T>, InstantiatableBeanDefinition<T>, QualifiedBeanType<T>
- Direct Known Subclasses:
AbstractInitializableBeanDefinitionAndReference, ReflectionBeanDefinition
Default implementation of the BeanDefinition interface. This class is generally not used directly in user
code.
Instead a build time tool does analysis of source code and dynamically produces subclasses of this class containing
information about the available injection points for a given class.
For technical reasons the class has to be marked as public, but is regarded as internal and should be used by compiler tools and plugins (such as AST transformation frameworks)
The io.micronaut.inject.writer.BeanDefinitionWriter class can be used to produce bean definitions at
compile or runtime
- Since:
- 3.0
- Author:
- Graeme Rocher, Denis Stepanov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe data class containing annotation injection information.static final classThe data class containing all filed reference information.static classThe shared data class between method and field reference.static final classThe data class containing all method reference information.static final record -
Field Summary
Fields inherited from interface AnnotationMetadata
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBERFields inherited from interface AnnotationSource
EMPTYFields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractInitializableBeanDefinition(Class<T> beanType, @Nullable AbstractInitializableBeanDefinition.MethodOrFieldReference constructor, @Nullable AnnotationMetadata annotationMetadata, AbstractInitializableBeanDefinition.MethodReference @Nullable [] methodInjection, AbstractInitializableBeanDefinition.FieldReference @Nullable [] fieldInjection, AbstractInitializableBeanDefinition.AnnotationReference @Nullable [] annotationInjection, @Nullable ExecutableMethodsDefinition<T> executableMethodsDefinition, @Nullable Map<String, Argument<?> @Nullable []> typeArgumentsMap, AbstractInitializableBeanDefinition.PrecalculatedInfo precalculatedInfo) -
Method Summary
Modifier and TypeMethodDescriptionbooleanValue(Class<? extends Annotation> p0) The value as an optional boolean for the given annotation and member.booleanValue(Class<? extends Annotation> p0, String p1) The value as an optional boolean for the given annotation and member.booleanValue(String p0) The value as an optional boolean for the given annotation and member.booleanValue(String p0, String p1) The value as an optional boolean for the given annotation and member.protected voidcheckIfShouldLoad(BeanResolutionContext resolutionContext, BeanContext context) Checks whether the bean should be loaded.protected final voidcheckInjectedBeanPropertyValue(String injectedBeanPropertyName, @Nullable Object beanPropertyValue, @Nullable String requiredValue, @Nullable String notEqualsValue) Check the value of the injected bean property to decide whether the bean should be loaded.classValue(Class<? extends Annotation> p0) The value of the annotation as a Class.classValue(Class<? extends Annotation> p0, String p1) The value of the annotation as a Class.classValue(String p0) The value of the annotation as a Class.classValue(String p0, String p1) The value of the annotation as a Class.<V> Class<V>[]classValues(Class<? extends Annotation> p0) The value of the annotation as a Class.<V> Class<V>[]classValues(Class<? extends Annotation> p0, String p1) The value of the annotation as a Class.<V> Class<V>[]classValues(String p0) The value of the annotation as a Class.<V> Class<V>[]classValues(String p0, String p1) The value of the annotation as a Class.voidconfigure(BeanContext beanContext) Configure the component for the given bean context.final voidconfigure(Environment environment) Configures the bean for the givenBeanContext.protected final booleancontainsProperties(BeanResolutionContext resolutionContext, BeanContext context) If this bean is aConfigurationPropertiesbean return whether any properties for it are configured within the context.protected final booleancontainsProperties(BeanResolutionContext resolutionContext, BeanContext context, @Nullable String subProperty) If this bean is aConfigurationPropertiesbean return whether any properties for it are configured within the context.protected final booleancontainsPropertiesValue(BeanResolutionContext resolutionContext, BeanContext context, String value) protected final booleancontainsPropertyValue(BeanResolutionContext resolutionContext, BeanContext context, String value) protected final booleancontainsValueForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, boolean isValuePrefix) Deprecated.protected final booleancontainsValueForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, boolean isValuePrefix) Deprecated.Makes a copy of the annotation or returns this.protected TdoInstantiate(BeanResolutionContext resolutionContext, BeanContext context, Map<String, Object> requiredArgumentValues) Deprecated, for removal: This API element is subject to removal in a future version.doubleValue(Class<? extends Annotation> p0) The value as anOptionalDoublefor the given annotation and member.doubleValue(Class<? extends Annotation> p0, String p1) The value as anOptionalDoublefor the given annotation and member.doubleValue(String p0, String p1) The value as anOptionalDoublefor the given annotation and member.enumValue(Class<? extends Annotation> p0, Class<E> p1) The value of the annotation as a Class.enumValue(Class<? extends Annotation> p0, String p1, Class<E> p2) The value of the annotation as a Class.The value of the given enum.The value of the annotation as a Class.<E extends Enum<E>>
E[]enumValues(Class<? extends Annotation> p0, Class<E> p1) The enum values for the given annotation.<E extends Enum<E>>
E[]enumValues(Class<? extends Annotation> p0, String p1, Class<E> p2) The enum values for the given annotation.<E extends Enum<E>>
E[]enumValues(String p0, Class<E> p1) The enum values for the given annotation.<E extends Enum<E>>
E[]enumValues(String p0, String p1, Class<E> p2) The enum values for the given annotation.boolean<A extends Annotation>
Optional<AnnotationValue<A>> findAnnotation(Class<A> p0) Find anAnnotationValuefor the given annotation type.<A extends Annotation>
Optional<AnnotationValue<A>> findAnnotation(String p0) Find anAnnotationValuefor the given annotation name.protected final <K> Optional<K> findBeanForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for a constructor argument at the given indexprotected final ObjectfindBeanForConstructorArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Argument genericType, Qualifier qualifier) protected final <K> Optional<K> findBeanForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains an optional for the field at the given index and the argument at the given indexprotected final ObjectfindBeanForFieldObject(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument genericType, Qualifier qualifier) protected final <K> Optional<K> findBeanForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains an optional bean for the method at the given index and the argument at the given indexprotected final ObjectfindBeanForMethodArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument genericType, Qualifier qualifier) <A extends Annotation>
Optional<AnnotationValue<A>> findDeclaredAnnotation(Class<A> p0) Get all values for the given annotation that are directly declared on the annotated element.<A extends Annotation>
Optional<AnnotationValue<A>> Get all values for the given annotation that are directly declared on the annotated element.final <R> Optional<ExecutableMethod<T, R>> findMethod(String name, Class<?>... argumentTypes) Finds a singleExecutableMethodfor the given name and argument types.final <R> Stream<ExecutableMethod<T, R>> findPossibleMethods(String name) Finds possible methods for the given method name.findRepeatableAnnotation(Class<? extends Annotation> p0) Find repeatable annotation container.Find repeatable annotation container.<A extends Annotation>
@Nullable AnnotationValue<A> getAnnotation(Class<A> p0) Find anAnnotationValuefor the given annotation name.<A extends Annotation>
@Nullable AnnotationValue<A> getAnnotation(String p0) Find anAnnotationValuefor the given annotation name.Supplies the metadata.getAnnotationNameByStereotype(@Nullable String p0) Find the first annotation name for the given stereotype.getAnnotationNameByStereotype(Class<? extends Annotation> p0) Find the first annotation name for the given stereotype.All the annotation names this metadata declares.getAnnotationNamesByStereotype(@Nullable String p0) Resolve all annotation names that feature the given stereotype.getAnnotationNamesByStereotype(Class<? extends Annotation> p0) Resolve all annotation names that feature the given stereotype.Optional<Class<? extends Annotation>> Gets the type for a given annotation if it is present on the classpath.Optional<Class<? extends Annotation>> getAnnotationType(String p0, ClassLoader p1) Gets the type for a given annotation if it is present on the classpath.Optional<Class<? extends Annotation>> getAnnotationTypeByStereotype(@Nullable String p0) Find the first annotation name for the given stereotype.Optional<Class<? extends Annotation>> getAnnotationTypeByStereotype(Class<? extends Annotation> p0) Find the first annotation name for the given stereotype.List<Class<? extends Annotation>> getAnnotationTypesByStereotype(Class<? extends Annotation> p0) Resolve all annotation names that feature the given stereotype.List<Class<? extends Annotation>> getAnnotationTypesByStereotype(Class<? extends Annotation> p0, ClassLoader p1) Resolve all annotation names that feature the given stereotype.List<Class<? extends Annotation>> Resolve all annotation names that feature the given stereotype.<A extends Annotation>
List<AnnotationValue<A>> Gets all the annotation values by the given type name.<A extends Annotation>
List<AnnotationValue<A>> getAnnotationValuesByStereotype(@Nullable String p0) Resolve all annotation values that feature the given stereotype.<A extends Annotation>
List<AnnotationValue<A>> getAnnotationValuesByType(Class<A> p0) Gets all the annotation values by the given repeatable type.protected final <K> @Nullable KgetBeanForAnnotation(BeanResolutionContext resolutionContext, BeanContext context, int annotationBeanIndex, Qualifier<K> qualifier) protected final @Nullable ObjectgetBeanForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Qualifier qualifier) Obtains a bean definition for a constructor at the given indexprotected final <K> @Nullable KgetBeanForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Qualifier<K> qualifier) Obtains a bean definition for the field at the given index and the argument at the given indexprotected final <K> @Nullable KgetBeanForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Qualifier<K> qualifier) Obtains a bean definition for the method at the given index and the argument at the given indexprotected final @Nullable ObjectgetBeanForSetter(BeanResolutionContext resolutionContext, BeanContext context, String setterName, Argument argument, Qualifier qualifier) Obtains a bean definition for the method at the given index and the argument at the given indexprotected final <K> @Nullable BeanRegistration<K> getBeanRegistrationForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argumentIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains a bean registration for a method injection point.protected final <K> @Nullable BeanRegistration<K> getBeanRegistrationForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains a bean registration for a field injection point.protected final <K> @Nullable BeanRegistration<K> getBeanRegistrationForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains a bean registration for a method injection point.protected final <K, R extends Collection<BeanRegistration<K>>>
@Nullable RgetBeanRegistrationsForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argumentIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for a constructor argument at the given indexprotected final @Nullable ObjectgetBeanRegistrationsForConstructorArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int argumentIndex, Argument genericType, Qualifier qualifier) protected final <K, R extends Collection<BeanRegistration<K>>>
@Nullable RgetBeanRegistrationsForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for a field injection point.protected final @Nullable ObjectgetBeanRegistrationsForFieldObject(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument genericType, Qualifier qualifier) protected final <K, R extends Collection<BeanRegistration<K>>>
@Nullable RgetBeanRegistrationsForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for a method injection point.protected final @Nullable ObjectgetBeanRegistrationsForMethodArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument genericType, Qualifier qualifier) protected final Collection<Object> getBeansOfTypeForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argumentIndex, Argument genericType, Qualifier qualifier) Obtains all bean definitions for a constructor argument at the given index.protected final ObjectgetBeansOfTypeForConstructorArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int argumentIndex, Argument genericType, Qualifier qualifier) protected final <K, R extends Collection<K>>
ObjectgetBeansOfTypeForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for the field at the given index.protected final ObjectgetBeansOfTypeForFieldObject(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument genericType, Qualifier qualifier) protected final <K, R extends Collection<K>>
RgetBeansOfTypeForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argumentIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for a method argument at the given index.protected final ObjectgetBeansOfTypeForMethodArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argumentIndex, Argument genericType, Qualifier qualifier) protected final Collection<Object> getBeansOfTypeForSetter(BeanResolutionContext resolutionContext, BeanContext context, String setterName, Argument argument, Argument genericType, Qualifier qualifier) Obtains all bean definitions for a method argument at the given index.Returns the bean type.final ConstructorInjectionPoint<T> The single concrete constructor that is an injection point for creating the bean.IfBeanType.isContainerType()returns true this will return the container element.<A extends Annotation>
@Nullable AnnotationValue<A> getDeclaredAnnotation(Class<A> p0) Find anAnnotationValuefor the given annotation name.<A extends Annotation>
@Nullable AnnotationValue<A> Get all values for the given annotation that are directly declared on the annotated element.getDeclaredAnnotationNameByStereotype(@Nullable String p0) Find the first annotation name for the given stereotype.All the declared annotation names this metadata declares.getDeclaredAnnotationNamesByStereotype(@Nullable String p0) Resolve all annotations names for the given stereotype that are declared annotations.Optional<Class<? extends Annotation>> getDeclaredAnnotationTypeByStereotype(@Nullable String p0) Find the first annotation name for the given stereotype.Optional<Class<? extends Annotation>> getDeclaredAnnotationTypeByStereotype(Class<? extends Annotation> p0) Find the first declared annotation name for the given stereotype.<A extends Annotation>
List<AnnotationValue<A>> Gets only declared annotation values by the given type name.<A extends Annotation>
List<AnnotationValue<A>> Gets only declared annotation values by the given repeatable type.Gets the declared metadata without inherited metdata.Resolve the declared qualifier for this bean.Returns the names of the annotations which are declared stereotypes.<V> Optional<V> getDefaultValue(Class<? extends Annotation> p0, String p1, Argument<V> p2) Return the default value for the given annotation member.<V> Optional<V> getDefaultValue(Class<? extends Annotation> p0, String p1, Class<V> p2) Return the default value for the given annotation member.<V> Optional<V> getDefaultValue(String p0, String p1, Argument<V> p2) Return the default value for the given annotation member.<V> Optional<V> getDefaultValue(String p0, String p1, Class<V> p2) Return the default value for the given annotation member.Return the default values for the given annotation name.protected final @Nullable ObjectgetEvaluatedExpressionValueForConstructorArgument(int argIndex) protected final @Nullable ObjectgetEvaluatedExpressionValueForMethodArgument(int methodIndex, int argIndex) final List<ExecutableMethod<T, ?>> final Iterable<ExecutableMethod<T, ?>> WhenBeanType.requiresMethodProcessing()is true, this method returns the methods that require processing.Returns a potentially limited subset of bean types exposed by this bean.protected int @Nullable []final List<FieldInjectionPoint<T, ?>> All the fields that require injection.final List<MethodInjectionPoint<T, ?>> All methods that require injection.getMapOfTypeForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Argument<V> genericType, Qualifier<V> qualifier) Obtains all bean definitions for a constructor argument at the given indexprotected final ObjectgetMapOfTypeForConstructorArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Argument genericType, Qualifier qualifier) getMapOfTypeForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument<V> genericType, Qualifier<V> qualifier) Obtains a bean definition for the field at the given index and the argument at the given indexprotected final ObjectgetMapOfTypeForFieldObject(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument genericType, Qualifier qualifier) getMapOfTypeForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument<V> genericType, Qualifier<V> qualifier) Obtains all bean definitions for the method at the given index and the argument at the given indexprotected final ObjectgetMapOfTypeForMethodArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument genericType, Qualifier qualifier) final StringgetName()final List<ExecutableMethod<T, ?>> ThePostConstructcallbacks compiled in as executable methods, in invocation order.final List<MethodInjectionPoint<T, ?>> All the methods that should be called once the bean has been fully initialized and constructed.final List<ExecutableMethod<T, ?>> ThePreDestroycallbacks compiled in as executable methods, in invocation order.final List<MethodInjectionPoint<T, ?>> All the methods that should be called when the object is to be destroyed.protected final @Nullable ObjectgetPropertyPlaceholderValueForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, String propertyValue) Obtains a property value for a bean definition for a constructor at the given indexprotected final @Nullable ObjectgetPropertyPlaceholderValueForField(BeanResolutionContext resolutionContext, BeanContext context, Argument argument, String placeholder) Deprecated.protected final @Nullable ObjectgetPropertyPlaceholderValueForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, String value) Obtains a placeholder value for the given method argument.protected final @Nullable ObjectgetPropertyPlaceholderValueForSetter(BeanResolutionContext resolutionContext, BeanContext context, String setterName, Argument<?> argument, String value) Obtains a placeholder value for the given method argument.protected final @Nullable ObjectgetPropertyValueForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, String propertyValue, String cliProperty) Obtains a property value for a bean definition for a constructor at the given indexprotected final @Nullable ObjectgetPropertyValueForField(BeanResolutionContext resolutionContext, BeanContext context, Argument argument, String propertyValue, String cliProperty) Deprecated.protected final @Nullable ObjectgetPropertyValueForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, String propertyValue, String cliProperty) Obtains a property value for the given method argument.protected final @Nullable ObjectgetPropertyValueForSetter(BeanResolutionContext resolutionContext, BeanContext context, String setterName, Argument<?> argument, String propertyValue, String cliProperty) Obtains a property value for the given method argument.final Argument<?>[]Implementing possibleParametrizedInstantiatableBeanDefinition.getRequiredArguments().final Collection<Class<?>> final Optional<Class<? extends Annotation>> getScope()Returns the names of the annotations which are stereotypes.protected final <K> Stream<K> getStreamOfTypeForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for a constructor argument at the given indexprotected final <K> Stream<K> getStreamOfTypeForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains a bean definition for the field at the given index and the argument at the given indexprotected final Stream<?> getStreamOfTypeForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument genericType, Qualifier qualifier) Obtains all bean definitions for the method at the given index and the argument at the given indexUnwraps possible delegate or provider.final Collection<String> The types this definition can answerBeanDefinition.getTypeArguments(String)for.getTypeArguments(@Nullable String type) Return the type arguments for the given interface or super type for this bean.getValue(Class<? extends Annotation> p0) Get the value of default "value" the given annotation.<V> Optional<V> getValue(Class<? extends Annotation> p0, Argument<V> p1) Get the value of default "value" the given annotation.<V> Optional<V> getValue(Class<? extends Annotation> p0, Class<V> p1) Get the value of default "value" the given annotation.getValue(Class<? extends Annotation> p0, String p1) Get the value of the given annotation member.<V> Optional<V> getValue(Class<? extends Annotation> p0, String p1, Argument<V> p2) Get the value of the given annotation member.<V> Optional<V> getValue(Class<? extends Annotation> p0, String p1, Class<V> p2) Get the value of the given annotation member.Get the value of default "value" the given annotation.<V> Optional<V> Get the value of default "value" the given annotation.<V> Optional<V> Get the value of default "value" the given annotation.Get the value of the given annotation member.<V> Optional<V> Get the value of the given annotation member.<V> Optional<V> Get the value of the given annotation member.protected final @Nullable ObjectgetValueForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Qualifier qualifier) Deprecated.protected final @Nullable ObjectgetValueForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Qualifier qualifier) Deprecated.protected final @Nullable ObjectgetValueForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Qualifier qualifier) Deprecated.protected final <T1> Optional<T1> getValueForPath(BeanResolutionContext resolutionContext, BeanContext context, Argument<T1> propertyType, String propertyPath) Resolve a value for the given field of the given type and path.<V> OptionalValues<V> getValues(Class<? extends Annotation> p0, Class<V> p1) Get all values for the given annotation.<V> OptionalValues<V> Get all values for the given annotation and type of the underlying values.booleanhasAnnotation(@Nullable Class<? extends Annotation> p0) Checks whether this object has the given annotation on the object itself or inherited from a parent.booleanhasAnnotation(@Nullable String p0) Checks whether this object has the given annotation on the object itself or inherited from a parent.booleanhasDeclaredAnnotation(@Nullable Class<? extends Annotation> p0) Checks whether this object has the given annotation directly declared on the object.booleanhasDeclaredAnnotation(@Nullable String p0) Checks whether this object has the given annotation directly declared on the object.booleanhasDeclaredStereotype(@Nullable Class<? extends Annotation> p0) Checks whether this object has the given stereotype directly declared on the object.booleanhasDeclaredStereotype(@Nullable String p0) Checks whether this object has the given annotation stereotype on the object itself and not inherited from a parentbooleanhasDeclaredStereotype(Class<? extends Annotation> @Nullable ... p0) Checks whether this object has any of the given stereotype directly declared on the object.booleanDoes the metadata contain any evaluated expressions like#{ T(java.lang.Math).random() }.inthashCode()final booleanDoes the metadata contain any property expressions like${foo.bar}.booleanhasSimpleAnnotation(@Nullable String p0) Checks whether the given annotation simple name (name without the package) is present in the annotations.booleanhasSimpleDeclaredAnnotation(@Nullable String p0) Checks whether the given annotation simple name (name without the package) is present in the declared annotations.booleanhasStereotype(@Nullable Class<? extends Annotation> p0) Checks whether this object has the given annotation stereotype on the object itself or inherited from a parentbooleanhasStereotype(@Nullable String p0) Checks whether this object has the given annotation stereotype on the object itself or inherited from a parentbooleanhasStereotype(Class<? extends Annotation> @Nullable ... p0) Check whether any of the given stereotypes is present.booleanhasStereotype(String @Nullable [] p0) Check whether any of the given stereotypes is present.inject(BeanResolutionContext resolutionContext, BeanContext context, T bean) Inject the given bean with the context.instantiate(BeanResolutionContext resolutionContext, BeanContext context, @Nullable Map<String, Object> requiredArgumentValues) Deprecated, for removal: This API element is subject to removal in a future version.The method moved toParametrizedInstantiatableBeanDefinitionintValue(Class<? extends Annotation> p0) The value as anOptionalIntfor the given annotation and member.intValue(Class<? extends Annotation> p0, String p1) The value as anOptionalIntfor the given annotation and member.The value as anOptionalIntfor the given annotation and member.protected final voidinvokeMethodWithReflection(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, Object bean, Object[] methodArgs) Invoke a bean method that requires reflection.booleanbooleanisAnnotationPresent(Class<? extends Annotation> p0) Return whether an annotation is present.final booleanfinal booleanChecks whether the bean type is a container type.booleanisDeclaredAnnotationPresent(Class<? extends Annotation> p0) Variation ofAnnotationSource.isAnnotationPresent(Class)for declared annotations.booleanisEmpty()Is the annotation metadata empty.booleanisEnabled(BeanContext context, @Nullable BeanResolutionContext resolutionContext) Return whether this component is enabled for the given context.booleanisFalse(Class<? extends Annotation> p0, String p1) Returns whether the value of the given member is true.booleanReturns whether the value of the given member is true.protected booleanisInnerConfiguration(Class<?> clazz) Check if the class is an inner configuration.booleanprotected final booleanisMethodResolved(int methodIndex, @Nullable Object[] parameters) booleanisPresent(Class<? extends Annotation> p0, String p1) Returns whether the value of the given member is present.booleanReturns whether the value of the given member is present.booleanbooleanisRepeatableAnnotation(Class<? extends Annotation> p0) Is repeatable annotation?booleanIs repeatable annotation?booleanbooleanisTrue(Class<? extends Annotation> p0, String p1) Returns whether the value of the given member is true.booleanReturns whether the value of the given member is true.longValue(Class<? extends Annotation> p0, String p1) The value as anOptionalLongfor the given annotation and member.The value as anOptionalLongfor the given annotation and member.protected final voidonFail(io.micronaut.context.DefaultConditionContext<io.micronaut.context.AbstractBeanContextConditional> conditionContext, BeanContext context) protected ObjectpostConstruct(BeanResolutionContext resolutionContext, BeanContext context, Object bean) Default postConstruct hook that only invokes methods that require reflection.protected ObjectpreDestroy(BeanResolutionContext resolutionContext, BeanContext context, Object bean) Default preDestroy hook that only invokes methods that require reflection.booleanBy default, when theBeanContextis started, theBeanDefinition.getExecutableMethods()are not processed by registeredExecutableMethodProcessorinstances unless this method returns true.protected final voidsetFieldWithReflection(BeanResolutionContext resolutionContext, BeanContext context, int index, Object object, Object value) Sets the value of a field of an object that requires reflection.stringValue(Class<? extends Annotation> p0) The value as an optional string for the given annotation and member.stringValue(Class<? extends Annotation> p0, String p1) The value as an optional string for the given annotation and member.stringValue(String p0) The value as an optional string for the given annotation and member.stringValue(String p0, String p1) The value as an optional string for the given annotation and member.String[]stringValues(Class<? extends Annotation> p0) The values as string array for the given annotation and member.String[]stringValues(Class<? extends Annotation> p0, String p1) The values as string array for the given annotation and member.String[]stringValues(String p0) The values as string array for the given annotation and member.String[]stringValues(String p0, String p1) The values as string array for the given annotation and member.<A extends Annotation>
@Nullable Asynthesize(Class<A> p0) Synthesizes a new annotation from the metadata for the given annotation type.<A extends Annotation>
@Nullable Asynthesize(Class<A> p0, String p1) Synthesizes a new annotation for the given annotation type using the member values of the given source annotation.Synthesizes a new annotations from the metadata.<A extends Annotation>
A[]synthesizeAnnotationsByType(Class<A> p0) Synthesizes a new annotations from the metadata for the given type.Synthesizes a new annotations from the metadata.<A extends Annotation>
@Nullable AsynthesizeDeclared(Class<A> p0) Synthesizes a new annotation from the metadata for the given annotation type.<A extends Annotation>
@Nullable AsynthesizeDeclared(Class<A> p0, String p1) Synthesizes a new annotation declared for the given annotation type using the member values of the given source annotation.<A extends Annotation>
A[]Synthesizes a new annotations from the metadata for the given type.toString()protected final voidDeprecated, for removal: This API element is subject to removal in a future version.No longer usedprotected final voidwarnMissingProperty(Class type, String method, String property) Deprecated, for removal: This API element is subject to removal in a future version.No longer usedMethods inherited from interface AnnotationMetadata
enumValuesSet, enumValuesSet, getValues, hasDeclaredStereotype, hasStereotypeNonRepeating, isAnnotationPresent, isDeclaredAnnotationPresentMethods inherited from interface BeanContextConditional
isEnabled, isEnabledMethods inherited from interface BeanDefinition
asArgument, getBeanDescription, getBeanDescription, getDefaultImplementation, getGenericBeanType, getReplacesDefinition, getRequiredMethod, getTypeArguments, getTypeArguments, getTypeInformation, getTypeParameters, getTypeParameters, hasAnnotatedMethod, isCanBeReplaced, isCandidateBean, isProxyMethods inherited from interface BeanType
getBeanNameMethods inherited from interface InjectableBeanDefinition
injectMethods inherited from interface InstantiatableBeanDefinition
instantiate, instantiateMethods inherited from interface QualifiedBeanType
resolveDynamicQualifier
-
Constructor Details
-
AbstractInitializableBeanDefinition
@Internal protected AbstractInitializableBeanDefinition(Class<T> beanType, @Nullable AbstractInitializableBeanDefinition.MethodOrFieldReference constructor, @Nullable AnnotationMetadata annotationMetadata, AbstractInitializableBeanDefinition.MethodReference @Nullable [] methodInjection, AbstractInitializableBeanDefinition.FieldReference @Nullable [] fieldInjection, AbstractInitializableBeanDefinition.AnnotationReference @Nullable [] annotationInjection, @Nullable ExecutableMethodsDefinition<T> executableMethodsDefinition, @Nullable Map<String, Argument<?> @Nullable []> typeArgumentsMap, AbstractInitializableBeanDefinition.PrecalculatedInfo precalculatedInfo)
-
-
Method Details
-
getDeclaredQualifier
Description copied from interface:QualifiedBeanTypeResolve the declared qualifier for this bean.- Specified by:
getDeclaredQualifierin interfaceQualifiedBeanType<T>- Returns:
- The qualifier or null if this isn't one
-
isContainerType
public final boolean isContainerType()Description copied from interface:BeanTypeChecks whether the bean type is a container type.- Specified by:
isContainerTypein interfaceBeanType<T>- Returns:
- Whether the type is a container type like
Iterable.
-
getContainerElement
Description copied from interface:BeanDefinitionIfBeanType.isContainerType()returns true this will return the container element.- Specified by:
getContainerElementin interfaceBeanDefinition<T>- Returns:
- The container element.
-
hasPropertyExpressions
public final boolean hasPropertyExpressions()Description copied from interface:AnnotationMetadataDoes the metadata contain any property expressions like${foo.bar}. Note this by default returnstrueas previous versions of Micronaut must assume metadata is present. The compilation time this is computed in order to decide whether to instrument annotation metadata with environment specific logic.- Specified by:
hasPropertyExpressionsin interfaceAnnotationMetadata- Specified by:
hasPropertyExpressionsin interfaceAnnotationMetadataDelegate- Specified by:
hasPropertyExpressionsin interfaceEnvironmentConfigurable- Returns:
- True if property expressions are present
-
hasEvaluatedExpressions
public boolean hasEvaluatedExpressions()Description copied from interface:AnnotationMetadataDoes the metadata contain any evaluated expressions like#{ T(java.lang.Math).random() }.- Specified by:
hasEvaluatedExpressionsin interfaceAnnotationMetadata- Specified by:
hasEvaluatedExpressionsin interfaceAnnotationMetadataDelegate- Returns:
- True if evaluated expressions are present
-
getTypeArguments
Description copied from interface:BeanDefinitionReturn the type arguments for the given interface or super type for this bean.- Specified by:
getTypeArgumentsin interfaceBeanDefinition<T>- Parameters:
type- The super class or interface type- Returns:
- The type arguments
-
getTypeArgumentKeys
Description copied from interface:BeanDefinitionThe types this definition can answerBeanDefinition.getTypeArguments(String)for.A definition computed at build time records the type arguments the compiler resolved for the bean type and for every super class and interface above it, keyed by type. This returns those keys, so a consumer that needs every super type the bean supplies arguments to can read what was recorded instead of rediscovering the hierarchy reflectively.
A key is a class name in the form
Class.getName()returns, which is what the definition stores; nothing here loads it. A caller that only needs the arguments passes the key straight back toBeanDefinition.getTypeArguments(String), and one that needs aClassloads the name itself. Every key answers that lookup, though the answer may be an empty list: a super type that carries no arguments of its own is still part of what was recorded.The iteration order is unspecified and is not the order of the hierarchy. A definition that records nothing answers empty - including for its own
BeanDefinition.getBeanType(), whichBeanDefinition.getTypeArguments()then answers empty for as well.A
ProxyBeanDefinitionanswers for the hierarchy of the type it proxies rather than for the generated proxy class, so its keys nameProxyBeanDefinition.getTargetType()and the super types above it.- Specified by:
getTypeArgumentKeysin interfaceBeanDefinition<T>- Returns:
- The recorded type keys, never
null
-
getAnnotationMetadata
Description copied from interface:AnnotationMetadataProviderSupplies the metadata. Defaults toAnnotationMetadata.EMPTY_METADATA.- Specified by:
getAnnotationMetadatain interfaceAnnotationMetadataProvider- Returns:
- The
AnnotationMetadata
-
isAbstract
public boolean isAbstract()- Specified by:
isAbstractin interfaceBeanDefinition<T>- Returns:
- Whether the bean definition is abstract
-
isIterable
public boolean isIterable()- Specified by:
isIterablein interfaceBeanDefinition<T>- Returns:
- Whether the bean declared with
EachPropertyorEachBean
-
isConfigurationProperties
public final boolean isConfigurationProperties()- Specified by:
isConfigurationPropertiesin interfaceBeanDefinition<T>- Returns:
- Is the type configuration properties.
-
isPrimary
-
requiresMethodProcessing
public boolean requiresMethodProcessing()Description copied from interface:BeanTypeBy default, when theBeanContextis started, theBeanDefinition.getExecutableMethods()are not processed by registeredExecutableMethodProcessorinstances unless this method returns true.- Specified by:
requiresMethodProcessingin interfaceBeanType<T>- Returns:
- Whether the bean definition requires method processing
- See Also:
-
findMethod
Description copied from interface:BeanDefinitionFinds a singleExecutableMethodfor the given name and argument types.- Specified by:
findMethodin interfaceBeanDefinition<T>- Type Parameters:
R- The return type- Parameters:
name- The method nameargumentTypes- The argument types- Returns:
- An optional
ExecutableMethod
-
findPossibleMethods
Description copied from interface:BeanDefinitionFinds possible methods for the given method name.- Specified by:
findPossibleMethodsin interfaceBeanDefinition<T>- Type Parameters:
R- The return type- Parameters:
name- The method name- Returns:
- The possible methods
-
getExecutableMethodsForProcessing
Description copied from interface:BeanDefinitionWhenBeanType.requiresMethodProcessing()is true, this method returns the methods that require processing. Executable methods withExecutable.processOnStartup()set to true.- Specified by:
getExecutableMethodsForProcessingin interfaceBeanDefinition<T>- Returns:
- The methods that require processing.
- See Also:
-
getIndexesOfExecutableMethodsForProcessing
protected int @Nullable [] getIndexesOfExecutableMethodsForProcessing() -
equals
-
hashCode
-
toString
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceBeanDefinition<T>- Returns:
- Whether the scope is singleton
-
getScope
- Specified by:
getScopein interfaceBeanDefinition<T>- Returns:
- The scope of the bean
-
getScopeName
- Specified by:
getScopeNamein interfaceBeanDefinition<T>- Returns:
- The name of the scope
-
getBeanType
Description copied from interface:BeanTypeReturns the bean type.- Specified by:
getBeanTypein interfaceBeanDefinition<T>- Specified by:
getBeanTypein interfaceBeanInfo<T>- Specified by:
getBeanTypein interfaceBeanType<T>- Returns:
- The produced bean type
-
getExposedTypes
Description copied from interface:BeanTypeReturns a potentially limited subset of bean types exposed by this bean. The types to be exposed can be defined by theTypeannotation.- Specified by:
getExposedTypesin interfaceBeanType<T>- Returns:
- The exposed types
-
getDeclaringType
- Specified by:
getDeclaringTypein interfaceBeanDefinition<T>- Returns:
- The type that declares this definition, null if not applicable.
-
getConstructor
Description copied from interface:BeanDefinitionThe single concrete constructor that is an injection point for creating the bean.- Specified by:
getConstructorin interfaceBeanDefinition<T>- Returns:
- The constructor injection point
-
getRequiredComponents
- Specified by:
getRequiredComponentsin interfaceBeanDefinition<T>- Returns:
- All required components for this entity definition
-
getInjectedMethods
Description copied from interface:BeanDefinitionAll methods that require injection. This is a subset of all the methods in the class.- Specified by:
getInjectedMethodsin interfaceBeanDefinition<T>- Returns:
- The required properties
-
getInjectedFields
Description copied from interface:BeanDefinitionAll the fields that require injection.- Specified by:
getInjectedFieldsin interfaceBeanDefinition<T>- Returns:
- The required fields
-
getPostConstructMethods
Description copied from interface:BeanDefinitionAll the methods that should be called once the bean has been fully initialized and constructed.- Specified by:
getPostConstructMethodsin interfaceBeanDefinition<T>- Returns:
- Methods to call post construct
-
getPreDestroyMethods
Description copied from interface:BeanDefinitionAll the methods that should be called when the object is to be destroyed.- Specified by:
getPreDestroyMethodsin interfaceBeanDefinition<T>- Returns:
- Methods to call pre-destroy
-
getName
-
inject
Description copied from interface:InjectableBeanDefinitionInject the given bean with the context.- Specified by:
injectin interfaceInjectableBeanDefinition<T>- Parameters:
resolutionContext- the resolution contextcontext- The contextbean- The bean- Returns:
- The injected bean
-
getExecutableMethods
- Specified by:
getExecutableMethodsin interfaceBeanDefinition<T>- Returns:
- The
ExecutableMethodinstances for this definition
-
getPostConstructExecutableMethods
ThePostConstructcallbacks compiled in as executable methods, in invocation order. Populated only for a bean that intercepts its post-construct phase.- Returns:
- The post-construct callbacks, or an empty list
- Since:
- 5.2.0
- See Also:
-
getPreDestroyExecutableMethods
ThePreDestroycallbacks compiled in as executable methods, in invocation order. Populated only for a bean that intercepts its pre-destroy phase.- Returns:
- The pre-destroy callbacks, or an empty list
- Since:
- 5.2.0
- See Also:
-
configure
Configures the bean for the givenBeanContext. If the context features anEnvironmentthis method configures the annotation metadata such that environment aware values are returned.- Specified by:
configurein interfaceEnvironmentConfigurable- Parameters:
environment- The environment
-
configure
Description copied from interface:BeanContextConfigurableConfigure the component for the given bean context.- Specified by:
configurein interfaceBeanContextConfigurable- Parameters:
beanContext- The bean context
-
warn
Deprecated, for removal: This API element is subject to removal in a future version.No longer usedAllows printing warning messages produced by the compiler.- Parameters:
message- The message
-
warnMissingProperty
@Internal @Deprecated(forRemoval=true, since="4.4.0") protected final void warnMissingProperty(Class type, String method, String property) Deprecated, for removal: This API element is subject to removal in a future version.No longer usedAllows printing warning messages produced by the compiler.- Parameters:
type- The typemethod- The methodproperty- The property
-
getRequiredArguments
Implementing possibleParametrizedInstantiatableBeanDefinition.getRequiredArguments().- Returns:
- The arguments required to construct parametrized bean
-
instantiate
@Deprecated(forRemoval=true, since="5.0") public T instantiate(BeanResolutionContext resolutionContext, BeanContext context, @Nullable Map<String, Object> requiredArgumentValues) throws BeanInstantiationExceptionDeprecated, for removal: This API element is subject to removal in a future version.The method moved toParametrizedInstantiatableBeanDefinitionImplementing possibleParametrizedInstantiatableBeanDefinition.instantiate(BeanResolutionContext, BeanContext).- Parameters:
resolutionContext- TheBeanResolutionContextcontext- TheBeanContextrequiredArgumentValues- The required arguments values. The keys should match the names of the arguments returned bygetRequiredArguments()- Returns:
- The instantiated bean
- Throws:
BeanInstantiationException- If the bean cannot be instantiated for the arguments supplied
-
doInstantiate
@Internal @Deprecated(forRemoval=true, since="5.0") protected T doInstantiate(BeanResolutionContext resolutionContext, BeanContext context, Map<String, Object> requiredArgumentValues) Deprecated, for removal: This API element is subject to removal in a future version.The method moved toParametrizedInstantiatableBeanDefinitionMethod to be implemented by the generated code if the bean definition is implementingParametrizedInstantiatableBeanDefinition.- Parameters:
resolutionContext- The resolution contextcontext- The bean contextrequiredArgumentValues- The required arguments- Returns:
- The built instance
-
postConstruct
@Internal protected Object postConstruct(BeanResolutionContext resolutionContext, BeanContext context, Object bean) Default postConstruct hook that only invokes methods that require reflection. Generated subclasses should override to call methods that don't require reflection.- Parameters:
resolutionContext- The resolution hookcontext- The contextbean- The bean- Returns:
- The bean
-
preDestroy
@Internal protected Object preDestroy(BeanResolutionContext resolutionContext, BeanContext context, Object bean) Default preDestroy hook that only invokes methods that require reflection. Generated subclasses should override to call methods that don't require reflection.- Parameters:
resolutionContext- The resolution hookcontext- The contextbean- The bean- Returns:
- The bean
-
isInnerConfiguration
-
checkIfShouldLoad
@Internal protected void checkIfShouldLoad(BeanResolutionContext resolutionContext, BeanContext context) Checks whether the bean should be loaded.- Parameters:
resolutionContext- - the resolution contextcontext- - the bean context
-
checkInjectedBeanPropertyValue
@Internal protected final void checkInjectedBeanPropertyValue(String injectedBeanPropertyName, @Nullable Object beanPropertyValue, @Nullable String requiredValue, @Nullable String notEqualsValue) Check the value of the injected bean property to decide whether the bean should be loaded.- Parameters:
injectedBeanPropertyName- the name of the injected bean propertybeanPropertyValue- the value of injected bean propertyrequiredValue- the value which is required for the bean to be loadednotEqualsValue- the value which bean property should not be equal to for the bean to be loaded
-
invokeMethodWithReflection
@Internal protected final void invokeMethodWithReflection(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, Object bean, Object[] methodArgs) Invoke a bean method that requires reflection.- Parameters:
resolutionContext- The resolution contextcontext- The bean contextmethodIndex- The method indexbean- The beanmethodArgs- The method args
-
setFieldWithReflection
@Internal protected final void setFieldWithReflection(BeanResolutionContext resolutionContext, BeanContext context, int index, Object object, Object value) Sets the value of a field of an object that requires reflection.- Parameters:
resolutionContext- The resolution contextcontext- The object contextindex- The index of the fieldobject- The object whose field should be modifievalue- The instance being set
-
getValueForMethodArgument
@Internal @Deprecated protected final @Nullable Object getValueForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Qualifier qualifier) Deprecated.Obtains a value for the given method argument.- Parameters:
resolutionContext- The resolution contextcontext- The bean contextmethodIndex- The method indexargIndex- The argument indexqualifier- The qualifier- Returns:
- The value
-
getPropertyValueForMethodArgument
@Internal protected final @Nullable Object getPropertyValueForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, String propertyValue, String cliProperty) Obtains a property value for the given method argument.- Parameters:
resolutionContext- The resolution contextcontext- The bean contextmethodIndex- The method indexargIndex- The argument indexpropertyValue- The property valuecliProperty- The cli property- Returns:
- The value
-
getPropertyPlaceholderValueForMethodArgument
@Internal protected final @Nullable Object getPropertyPlaceholderValueForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, String value) Obtains a placeholder value for the given method argument.- Parameters:
resolutionContext- The resolution contextcontext- The bean contextmethodIndex- The method indexargIndex- The argument indexvalue- The property value- Returns:
- The value
-
getEvaluatedExpressionValueForMethodArgument
-
getPropertyValueForSetter
@Internal protected final @Nullable Object getPropertyValueForSetter(BeanResolutionContext resolutionContext, BeanContext context, String setterName, Argument<?> argument, String propertyValue, String cliProperty) Obtains a property value for the given method argument.- Parameters:
resolutionContext- The resolution contextcontext- The bean contextsetterName- The setter nameargument- The argumentpropertyValue- The property valuecliProperty- The cli property- Returns:
- The value
-
getPropertyPlaceholderValueForSetter
@Internal protected final @Nullable Object getPropertyPlaceholderValueForSetter(BeanResolutionContext resolutionContext, BeanContext context, String setterName, Argument<?> argument, String value) Obtains a placeholder value for the given method argument.- Parameters:
resolutionContext- The resolution contextcontext- The bean contextsetterName- The setter nameargument- The argumentvalue- The value- Returns:
- The value
-
containsValueForMethodArgument
@Internal @Deprecated protected final boolean containsValueForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, boolean isValuePrefix) Deprecated.Obtains a value for the given method argument.- Parameters:
resolutionContext- The resolution contextcontext- The bean contextmethodIndex- The method indexargIndex- The argument indexisValuePrefix- Is value prefix in cases when beans are requested- Returns:
- The value
-
getBeanForMethodArgument
@Internal protected final <K> @Nullable K getBeanForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Qualifier<K> qualifier) Obtains a bean definition for the method at the given index and the argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextmethodIndex- The method indexargIndex- The argument indexqualifier- The qualifier- Returns:
- The resolved bean
-
isMethodResolved
-
getBeansOfTypeForMethodArgument
@Internal protected final <K, R extends Collection<K>> R getBeansOfTypeForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argumentIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for a method argument at the given index.- Type Parameters:
K- The bean typeR- The result collection type- Parameters:
resolutionContext- The resolution contextcontext- The contextmethodIndex- The method indexargumentIndex- The argument indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
getBeansOfTypeForMethodArgumentObject
@Internal protected final Object getBeansOfTypeForMethodArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argumentIndex, Argument genericType, Qualifier qualifier) -
getBeanForSetter
@Internal protected final @Nullable Object getBeanForSetter(BeanResolutionContext resolutionContext, BeanContext context, String setterName, Argument argument, Qualifier qualifier) Obtains a bean definition for the method at the given index and the argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Parameters:
resolutionContext- The resolution contextcontext- The contextsetterName- The setter nameargument- The argumentqualifier- The qualifier- Returns:
- The resolved bean
-
getBeansOfTypeForSetter
@Internal protected final Collection<Object> getBeansOfTypeForSetter(BeanResolutionContext resolutionContext, BeanContext context, String setterName, Argument argument, Argument genericType, Qualifier qualifier) Obtains all bean definitions for a method argument at the given index.- Parameters:
resolutionContext- The resolution contextcontext- The contextsetterName- The setter nameargument- The argumentgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
findBeanForMethodArgument
@Internal protected final <K> Optional<K> findBeanForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains an optional bean for the method at the given index and the argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextmethodIndex- The method indexargIndex- The argument indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
findBeanForMethodArgumentObject
@Internal protected final Object findBeanForMethodArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument genericType, Qualifier qualifier) -
getStreamOfTypeForMethodArgument
@Internal protected final Stream<?> getStreamOfTypeForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument genericType, Qualifier qualifier) Obtains all bean definitions for the method at the given index and the argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Parameters:
resolutionContext- The resolution contextcontext- The contextmethodIndex- The method indexargIndex- The argument indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
getMapOfTypeForMethodArgument
@Internal protected final <V> Map<String,V> getMapOfTypeForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument<V> genericType, Qualifier<V> qualifier) Obtains all bean definitions for the method at the given index and the argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
V- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextmethodIndex- The method indexargIndex- The argument indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
getMapOfTypeForMethodArgumentObject
@Internal protected final Object getMapOfTypeForMethodArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument genericType, Qualifier qualifier) -
getBeanForConstructorArgument
@Internal protected final @Nullable Object getBeanForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Qualifier qualifier) Obtains a bean definition for a constructor at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Parameters:
resolutionContext- The resolution contextcontext- The contextargIndex- The argument indexqualifier- The qualifier- Returns:
- The resolved bean
-
getValueForConstructorArgument
@Internal @Deprecated protected final @Nullable Object getValueForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Qualifier qualifier) Deprecated.Obtains a value for a bean definition for a constructor at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Parameters:
resolutionContext- The resolution contextcontext- The contextargIndex- The argument indexqualifier- The qualifier- Returns:
- The resolved bean
-
getPropertyValueForConstructorArgument
@Internal protected final @Nullable Object getPropertyValueForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, String propertyValue, String cliProperty) Obtains a property value for a bean definition for a constructor at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Parameters:
resolutionContext- The resolution contextcontext- The contextargIndex- The argument indexpropertyValue- The property valuecliProperty- The cli property- Returns:
- The resolved bean
-
getEvaluatedExpressionValueForConstructorArgument
-
getPropertyPlaceholderValueForConstructorArgument
@Internal protected final @Nullable Object getPropertyPlaceholderValueForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, String propertyValue) Obtains a property value for a bean definition for a constructor at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Parameters:
resolutionContext- The resolution contextcontext- The contextargIndex- The argument indexpropertyValue- The property value- Returns:
- The resolved bean
-
getBeansOfTypeForConstructorArgument
@Internal protected final Collection<Object> getBeansOfTypeForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argumentIndex, Argument genericType, Qualifier qualifier) Obtains all bean definitions for a constructor argument at the given index.- Parameters:
resolutionContext- The resolution contextcontext- The contextargumentIndex- The argument indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
getBeansOfTypeForConstructorArgumentObject
@Internal protected final Object getBeansOfTypeForConstructorArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int argumentIndex, Argument genericType, Qualifier qualifier) -
getBeanRegistrationsForConstructorArgument
@Internal protected final <K, R extends Collection<BeanRegistration<K>>> @Nullable R getBeanRegistrationsForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argumentIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for a constructor argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean typeR- The result collection type- Parameters:
resolutionContext- The resolution contextcontext- The contextargumentIndex- The argument indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
getBeanRegistrationsForConstructorArgumentObject
@Internal protected final @Nullable Object getBeanRegistrationsForConstructorArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int argumentIndex, Argument genericType, Qualifier qualifier) -
getBeanRegistrationForConstructorArgument
@Internal protected final <K> @Nullable BeanRegistration<K> getBeanRegistrationForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argumentIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains a bean registration for a method injection point.Warning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextargumentIndex- The arg indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean registration
-
getBeanRegistrationsForMethodArgument
@Internal protected final <K, R extends Collection<BeanRegistration<K>>> @Nullable R getBeanRegistrationsForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for a method injection point.Warning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean typeR- The result collection type- Parameters:
resolutionContext- The resolution contextcontext- The contextmethodIndex- The method indexargIndex- The arg indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
getBeanRegistrationsForMethodArgumentObject
@Internal protected final @Nullable Object getBeanRegistrationsForMethodArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument genericType, Qualifier qualifier) -
getBeanRegistrationForMethodArgument
@Internal protected final <K> @Nullable BeanRegistration<K> getBeanRegistrationForMethodArgument(BeanResolutionContext resolutionContext, BeanContext context, int methodIndex, int argIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains a bean registration for a method injection point.Warning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextmethodIndex- The method indexargIndex- The arg indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean registration
-
getStreamOfTypeForConstructorArgument
@Internal protected final <K> Stream<K> getStreamOfTypeForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for a constructor argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextargIndex- The argument indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
getMapOfTypeForConstructorArgument
@Internal protected final <V> Map<String,V> getMapOfTypeForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Argument<V> genericType, Qualifier<V> qualifier) Obtains all bean definitions for a constructor argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
V- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextargIndex- The argument indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
getMapOfTypeForConstructorArgumentObject
@Internal protected final Object getMapOfTypeForConstructorArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Argument genericType, Qualifier qualifier) -
findBeanForConstructorArgument
@Internal protected final <K> Optional<K> findBeanForConstructorArgument(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for a constructor argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextargIndex- The argument indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
findBeanForConstructorArgumentObject
@Internal protected final Object findBeanForConstructorArgumentObject(BeanResolutionContext resolutionContext, BeanContext context, int argIndex, Argument genericType, Qualifier qualifier) -
getBeanForField
@Internal protected final <K> @Nullable K getBeanForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Qualifier<K> qualifier) Obtains a bean definition for the field at the given index and the argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextfieldIndex- The field indexqualifier- The qualifier- Returns:
- The resolved bean
-
getBeanForAnnotation
@Internal protected final <K> @Nullable K getBeanForAnnotation(BeanResolutionContext resolutionContext, BeanContext context, int annotationBeanIndex, Qualifier<K> qualifier) -
getValueForField
@Internal @Deprecated protected final @Nullable Object getValueForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Qualifier qualifier) Deprecated.Obtains a value for the given field from the bean contextWarning: this method is used by internal generated code and should not be called by user code.
- Parameters:
resolutionContext- The resolution contextcontext- The contextfieldIndex- The index of the fieldqualifier- The qualifier- Returns:
- The resolved bean
-
getPropertyValueForField
@Internal @Deprecated protected final @Nullable Object getPropertyValueForField(BeanResolutionContext resolutionContext, BeanContext context, Argument argument, String propertyValue, String cliProperty) Deprecated.Obtains a property value for the given field from the bean contextWarning: this method is used by internal generated code and should not be called by user code.
- Parameters:
resolutionContext- The resolution contextcontext- The contextargument- The argumentpropertyValue- The property valuecliProperty- The clie property name- Returns:
- The resolved bean
-
getPropertyPlaceholderValueForField
@Internal @Deprecated protected final @Nullable Object getPropertyPlaceholderValueForField(BeanResolutionContext resolutionContext, BeanContext context, Argument argument, String placeholder) Deprecated.Obtains a property placeholder value for the given field from the bean contextWarning: this method is used by internal generated code and should not be called by user code.
- Parameters:
resolutionContext- The resolution contextcontext- The contextargument- The argumentplaceholder- The placeholder- Returns:
- The resolved bean
-
getValueForPath
@Internal protected final <T1> Optional<T1> getValueForPath(BeanResolutionContext resolutionContext, BeanContext context, Argument<T1> propertyType, String propertyPath) Resolve a value for the given field of the given type and path.- Type Parameters:
T1- The generic type- Parameters:
resolutionContext- The resolution contextcontext- The bean contextpropertyType- The required property typepropertyPath- The property path- Returns:
- An optional value
-
containsValueForField
@Internal @Deprecated protected final boolean containsValueForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, boolean isValuePrefix) Deprecated.Obtains a value for the given field argument.- Parameters:
resolutionContext- The resolution contextcontext- The bean contextfieldIndex- The field indexisValuePrefix- Is value prefix in cases when beans are requested- Returns:
- True if it does
-
containsProperties
@Internal protected final boolean containsProperties(BeanResolutionContext resolutionContext, BeanContext context) If this bean is aConfigurationPropertiesbean return whether any properties for it are configured within the context.- Parameters:
resolutionContext- the resolution contextcontext- The context- Returns:
- True if it does
-
containsProperties
@Internal protected final boolean containsProperties(BeanResolutionContext resolutionContext, BeanContext context, @Nullable String subProperty) If this bean is aConfigurationPropertiesbean return whether any properties for it are configured within the context.- Parameters:
resolutionContext- the resolution contextcontext- The contextsubProperty- The subproperty to check- Returns:
- True if it does
-
getBeansOfTypeForField
@Internal protected final <K, R extends Collection<K>> Object getBeansOfTypeForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for the field at the given index.- Type Parameters:
K- The bean typeR- The result collection type- Parameters:
resolutionContext- The resolution contextcontext- The contextfieldIndex- The field indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
getBeansOfTypeForFieldObject
@Internal protected final Object getBeansOfTypeForFieldObject(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument genericType, Qualifier qualifier) -
getBeanRegistrationsForField
@Internal protected final <K, R extends Collection<BeanRegistration<K>>> @Nullable R getBeanRegistrationsForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains all bean definitions for a field injection point.Warning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean typeR- The result collection type- Parameters:
resolutionContext- The resolution contextcontext- The contextfieldIndex- The field indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
getBeanRegistrationsForFieldObject
@Internal protected final @Nullable Object getBeanRegistrationsForFieldObject(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument genericType, Qualifier qualifier) -
getBeanRegistrationForField
@Internal protected final <K> @Nullable BeanRegistration<K> getBeanRegistrationForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains a bean registration for a field injection point.Warning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextfieldIndex- The field indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean registration
-
findBeanForField
@Internal protected final <K> Optional<K> findBeanForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains an optional for the field at the given index and the argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextfieldIndex- The field indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
findBeanForFieldObject
@Internal protected final Object findBeanForFieldObject(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument genericType, Qualifier qualifier) -
getStreamOfTypeForField
@Internal protected final <K> Stream<K> getStreamOfTypeForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument<K> genericType, Qualifier<K> qualifier) Obtains a bean definition for the field at the given index and the argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
K- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextfieldIndex- The field indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
getMapOfTypeForField
@Internal protected final <V> Map<String,V> getMapOfTypeForField(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument<V> genericType, Qualifier<V> qualifier) Obtains a bean definition for the field at the given index and the argument at the given indexWarning: this method is used by internal generated code and should not be called by user code.
- Type Parameters:
V- The bean type- Parameters:
resolutionContext- The resolution contextcontext- The contextfieldIndex- The field indexgenericType- The generic typequalifier- The qualifier- Returns:
- The resolved bean
-
getMapOfTypeForFieldObject
@Internal protected final Object getMapOfTypeForFieldObject(BeanResolutionContext resolutionContext, BeanContext context, int fieldIndex, Argument genericType, Qualifier qualifier) -
containsPropertiesValue
@Internal protected final boolean containsPropertiesValue(BeanResolutionContext resolutionContext, BeanContext context, String value) -
containsPropertyValue
@Internal protected final boolean containsPropertyValue(BeanResolutionContext resolutionContext, BeanContext context, String value) -
booleanValue
Description copied from interface:AnnotationMetadataThe value as an optional boolean for the given annotation and member.- Specified by:
booleanValuein interfaceAnnotationMetadata- Specified by:
booleanValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- The string value if it is present
-
booleanValue
Description copied from interface:AnnotationMetadataThe value as an optional boolean for the given annotation and member.- Specified by:
booleanValuein interfaceAnnotationMetadata- Specified by:
booleanValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The member- Returns:
- The string value if it is present
-
booleanValue
Description copied from interface:AnnotationMetadataThe value as an optional boolean for the given annotation and member.- Specified by:
booleanValuein interfaceAnnotationMetadata- Specified by:
booleanValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- The string value if it is present
-
booleanValue
Description copied from interface:AnnotationMetadataThe value as an optional boolean for the given annotation and member.- Specified by:
booleanValuein interfaceAnnotationMetadata- Specified by:
booleanValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The member- Returns:
- The string value if it is present
-
classValue
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuein interfaceAnnotationMetadata- Specified by:
classValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- An
Optionalclass
-
classValue
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuein interfaceAnnotationMetadata- Specified by:
classValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The annotation member- Returns:
- An
Optionalclass
-
classValue
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuein interfaceAnnotationMetadata- Specified by:
classValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- An
Optionalclass
-
classValue
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuein interfaceAnnotationMetadata- Specified by:
classValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The annotation member- Returns:
- An
Optionalclass
-
classValues
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuesin interfaceAnnotationMetadata- Specified by:
classValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
V- The type of the class- Parameters:
p0- The annotation- Returns:
- An
Optionalclass
-
classValues
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuesin interfaceAnnotationMetadata- Specified by:
classValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
V- The type of the class- Parameters:
p0- The annotationp1- The annotation member- Returns:
- An
Optionalclass
-
classValues
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuesin interfaceAnnotationMetadata- Specified by:
classValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
V- The type of the class- Parameters:
p0- The annotation- Returns:
- An
Optionalclass
-
classValues
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
classValuesin interfaceAnnotationMetadata- Specified by:
classValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
V- The type of the class- Parameters:
p0- The annotationp1- The annotation member- Returns:
- An
Optionalclass
-
copyAnnotationMetadata
Description copied from interface:AnnotationMetadataMakes a copy of the annotation or returns this.- Specified by:
copyAnnotationMetadatain interfaceAnnotationMetadata- Specified by:
copyAnnotationMetadatain interfaceAnnotationMetadataDelegate- Returns:
- the copy
-
doubleValue
Description copied from interface:AnnotationMetadataThe value as anOptionalDoublefor the given annotation and member.- Specified by:
doubleValuein interfaceAnnotationMetadata- Specified by:
doubleValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- THe
OptionalDoublevalue
-
doubleValue
Description copied from interface:AnnotationMetadataThe value as anOptionalDoublefor the given annotation and member.- Specified by:
doubleValuein interfaceAnnotationMetadata- Specified by:
doubleValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The member- Returns:
- THe
OptionalDoublevalue
-
doubleValue
Description copied from interface:AnnotationMetadataThe value as anOptionalDoublefor the given annotation and member.- Specified by:
doubleValuein interfaceAnnotationMetadata- Specified by:
doubleValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The member- Returns:
- THe
OptionalDoublevalue
-
enumValue
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
enumValuein interfaceAnnotationMetadata- Specified by:
enumValuein interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
p0- The annotationp1- The enum type- Returns:
- An
Optionalclass
-
enumValue
public <E extends Enum<E>> Optional<E> enumValue(Class<? extends Annotation> p0, String p1, Class<E> p2) Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
enumValuein interfaceAnnotationMetadata- Specified by:
enumValuein interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
p0- The annotationp1- The annotation memberp2- The enum type- Returns:
- An
Optionalclass
-
enumValue
Description copied from interface:AnnotationMetadataThe value of the given enum.- Specified by:
enumValuein interfaceAnnotationMetadata- Specified by:
enumValuein interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
p0- The annotationp1- The enum type- Returns:
- An
Optionalenum value
-
enumValue
Description copied from interface:AnnotationMetadataThe value of the annotation as a Class.- Specified by:
enumValuein interfaceAnnotationMetadata- Specified by:
enumValuein interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
p0- The annotationp1- The annotation memberp2- The enum type- Returns:
- An
Optionalclass
-
enumValues
Description copied from interface:AnnotationMetadataThe enum values for the given annotation.- Specified by:
enumValuesin interfaceAnnotationMetadata- Specified by:
enumValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
p0- The annotationp1- The enum type- Returns:
- An array of enum values
-
enumValues
Description copied from interface:AnnotationMetadataThe enum values for the given annotation.- Specified by:
enumValuesin interfaceAnnotationMetadata- Specified by:
enumValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
p0- The annotationp1- The annotation memberp2- The enum type- Returns:
- An array of enum values
-
enumValues
Description copied from interface:AnnotationMetadataThe enum values for the given annotation.- Specified by:
enumValuesin interfaceAnnotationMetadata- Specified by:
enumValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
p0- The annotationp1- The enum type- Returns:
- An array of enum values
-
enumValues
Description copied from interface:AnnotationMetadataThe enum values for the given annotation.- Specified by:
enumValuesin interfaceAnnotationMetadata- Specified by:
enumValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
E- The enum type- Parameters:
p0- The annotationp1- The annotation memberp2- The enum type- Returns:
- An array of enum values
-
findAnnotation
Description copied from interface:AnnotationSourceFind anAnnotationValuefor the given annotation type.- Specified by:
findAnnotationin interfaceAnnotationMetadata- Specified by:
findAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
findAnnotationin interfaceAnnotationMetadataProvider- Specified by:
findAnnotationin interfaceAnnotationSource- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation- Returns:
- A
AnnotationValueinstance
-
findAnnotation
Description copied from interface:AnnotationSourceFind anAnnotationValuefor the given annotation name.- Specified by:
findAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
findAnnotationin interfaceAnnotationMetadataProvider- Specified by:
findAnnotationin interfaceAnnotationSource- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation name- Returns:
- A
AnnotationValueinstance
-
findDeclaredAnnotation
Description copied from interface:AnnotationSourceGet all values for the given annotation that are directly declared on the annotated element.- Specified by:
findDeclaredAnnotationin interfaceAnnotationMetadata- Specified by:
findDeclaredAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
findDeclaredAnnotationin interfaceAnnotationMetadataProvider- Specified by:
findDeclaredAnnotationin interfaceAnnotationSource- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation name- Returns:
- A
AnnotationValueinstance
-
findDeclaredAnnotation
Description copied from interface:AnnotationSourceGet all values for the given annotation that are directly declared on the annotated element.- Specified by:
findDeclaredAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
findDeclaredAnnotationin interfaceAnnotationMetadataProvider- Specified by:
findDeclaredAnnotationin interfaceAnnotationSource- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation name- Returns:
- A
AnnotationValueinstance
-
findRepeatableAnnotation
Description copied from interface:AnnotationMetadataFind repeatable annotation container.- Specified by:
findRepeatableAnnotationin interfaceAnnotationMetadata- Specified by:
findRepeatableAnnotationin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- optional repeatable annotation container
-
findRepeatableAnnotation
Description copied from interface:AnnotationMetadataFind repeatable annotation container.- Specified by:
findRepeatableAnnotationin interfaceAnnotationMetadata- Specified by:
findRepeatableAnnotationin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- optional repeatable annotation container
-
getAnnotation
Description copied from interface:AnnotationSourceFind anAnnotationValuefor the given annotation name.- Specified by:
getAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
getAnnotationin interfaceAnnotationSource- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation name- Returns:
- A
AnnotationValueinstance or null
-
getAnnotation
Description copied from interface:AnnotationSourceFind anAnnotationValuefor the given annotation name.- Specified by:
getAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
getAnnotationin interfaceAnnotationSource- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation name- Returns:
- A
AnnotationValueinstance or null
-
getAnnotationNameByStereotype
Description copied from interface:AnnotationMetadataFind the first annotation name for the given stereotype.- Specified by:
getAnnotationNameByStereotypein interfaceAnnotationMetadata- Specified by:
getAnnotationNameByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The stereotype- Returns:
- The annotation name
-
getAnnotationNameByStereotype
Description copied from interface:AnnotationMetadataFind the first annotation name for the given stereotype.- Specified by:
getAnnotationNameByStereotypein interfaceAnnotationMetadata- Specified by:
getAnnotationNameByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The stereotype- Returns:
- The annotation name
-
getAnnotationNames
Description copied from interface:AnnotationMetadataAll the annotation names this metadata declares.- Specified by:
getAnnotationNamesin interfaceAnnotationMetadata- Specified by:
getAnnotationNamesin interfaceAnnotationMetadataDelegate- Returns:
- All the annotation names this metadata declares
-
getAnnotationNamesByStereotype
Description copied from interface:AnnotationMetadataResolve all annotation names that feature the given stereotype.- Specified by:
getAnnotationNamesByStereotypein interfaceAnnotationMetadata- Specified by:
getAnnotationNamesByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation names- Returns:
- A set of annotation names
-
getAnnotationNamesByStereotype
Description copied from interface:AnnotationMetadataResolve all annotation names that feature the given stereotype.- Specified by:
getAnnotationNamesByStereotypein interfaceAnnotationMetadata- Specified by:
getAnnotationNamesByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation names- Returns:
- A set of annotation names
-
getAnnotationType
Description copied from interface:AnnotationMetadataGets the type for a given annotation if it is present on the classpath. Subclasses can potentially override to provide optimized loading.- Specified by:
getAnnotationTypein interfaceAnnotationMetadata- Specified by:
getAnnotationTypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The type name- Returns:
- The type if present
-
getAnnotationType
Description copied from interface:AnnotationMetadataGets the type for a given annotation if it is present on the classpath. Subclasses can potentially override to provide optimized loading.- Specified by:
getAnnotationTypein interfaceAnnotationMetadata- Specified by:
getAnnotationTypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The type namep1- The ClassLoader to load the type- Returns:
- The type if present
-
getAnnotationTypeByStereotype
public Optional<Class<? extends Annotation>> getAnnotationTypeByStereotype(Class<? extends Annotation> p0) Description copied from interface:AnnotationMetadataFind the first annotation name for the given stereotype.- Specified by:
getAnnotationTypeByStereotypein interfaceAnnotationMetadata- Specified by:
getAnnotationTypeByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The stereotype- Returns:
- The annotation name
-
getAnnotationTypeByStereotype
Description copied from interface:AnnotationMetadataFind the first annotation name for the given stereotype.- Specified by:
getAnnotationTypeByStereotypein interfaceAnnotationMetadata- Specified by:
getAnnotationTypeByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The stereotype- Returns:
- The annotation name
-
getAnnotationTypesByStereotype
public List<Class<? extends Annotation>> getAnnotationTypesByStereotype(Class<? extends Annotation> p0) Description copied from interface:AnnotationMetadataResolve all annotation names that feature the given stereotype.- Specified by:
getAnnotationTypesByStereotypein interfaceAnnotationMetadata- Specified by:
getAnnotationTypesByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation names- Returns:
- A set of annotation names
-
getAnnotationTypesByStereotype
public List<Class<? extends Annotation>> getAnnotationTypesByStereotype(Class<? extends Annotation> p0, ClassLoader p1) Description copied from interface:AnnotationMetadataResolve all annotation names that feature the given stereotype.- Specified by:
getAnnotationTypesByStereotypein interfaceAnnotationMetadata- Specified by:
getAnnotationTypesByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation namesp1- The classloader to load annotation type- Returns:
- A set of annotation names
-
getAnnotationTypesByStereotype
Description copied from interface:AnnotationMetadataResolve all annotation names that feature the given stereotype.- Specified by:
getAnnotationTypesByStereotypein interfaceAnnotationMetadata- Specified by:
getAnnotationTypesByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation names- Returns:
- A set of annotation names
-
getAnnotationValuesByName
Description copied from interface:AnnotationMetadataGets all the annotation values by the given type name. A repeatable annotation lists each of its occurrences, a non-repeatable one is a single-element list and an absent one an empty list.- Specified by:
getAnnotationValuesByNamein interfaceAnnotationMetadata- Specified by:
getAnnotationValuesByNamein interfaceAnnotationMetadataDelegate- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation type- Returns:
- A list of values
-
getAnnotationValuesByStereotype
public <A extends Annotation> List<AnnotationValue<A>> getAnnotationValuesByStereotype(@Nullable String p0) Description copied from interface:AnnotationMetadataResolve all annotation values that feature the given stereotype.- Specified by:
getAnnotationValuesByStereotypein interfaceAnnotationMetadata- Specified by:
getAnnotationValuesByStereotypein interfaceAnnotationMetadataDelegate- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation names- Returns:
- A set of annotation names
-
getAnnotationValuesByType
Description copied from interface:AnnotationMetadataGets all the annotation values by the given repeatable type.- Specified by:
getAnnotationValuesByTypein interfaceAnnotationMetadata- Specified by:
getAnnotationValuesByTypein interfaceAnnotationMetadataDelegate- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation type- Returns:
- A list of values
-
getDeclaredAnnotation
Description copied from interface:AnnotationSourceFind anAnnotationValuefor the given annotation name.- Specified by:
getDeclaredAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
getDeclaredAnnotationin interfaceAnnotationSource- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation name- Returns:
- A
AnnotationValueinstance or null
-
getDeclaredAnnotation
Description copied from interface:AnnotationSourceGet all values for the given annotation that are directly declared on the annotated element.- Specified by:
getDeclaredAnnotationin interfaceAnnotationMetadataDelegate- Specified by:
getDeclaredAnnotationin interfaceAnnotationSource- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation name- Returns:
- A
AnnotationValueinstance
-
getDeclaredAnnotationNameByStereotype
Description copied from interface:AnnotationMetadataFind the first annotation name for the given stereotype.- Specified by:
getDeclaredAnnotationNameByStereotypein interfaceAnnotationMetadata- Specified by:
getDeclaredAnnotationNameByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The stereotype- Returns:
- The annotation name
-
getDeclaredAnnotationNames
Description copied from interface:AnnotationMetadataAll the declared annotation names this metadata declares.- Specified by:
getDeclaredAnnotationNamesin interfaceAnnotationMetadata- Specified by:
getDeclaredAnnotationNamesin interfaceAnnotationMetadataDelegate- Returns:
- All the declared annotation names this metadata declares
-
getDeclaredAnnotationNamesByStereotype
Description copied from interface:AnnotationMetadataResolve all annotations names for the given stereotype that are declared annotations.- Specified by:
getDeclaredAnnotationNamesByStereotypein interfaceAnnotationMetadata- Specified by:
getDeclaredAnnotationNamesByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The stereotype- Returns:
- The declared annotations
-
getDeclaredAnnotationTypeByStereotype
public Optional<Class<? extends Annotation>> getDeclaredAnnotationTypeByStereotype(Class<? extends Annotation> p0) Description copied from interface:AnnotationMetadataFind the first declared annotation name for the given stereotype.- Specified by:
getDeclaredAnnotationTypeByStereotypein interfaceAnnotationMetadata- Specified by:
getDeclaredAnnotationTypeByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The stereotype- Returns:
- The annotation name
-
getDeclaredAnnotationTypeByStereotype
public Optional<Class<? extends Annotation>> getDeclaredAnnotationTypeByStereotype(@Nullable String p0) Description copied from interface:AnnotationMetadataFind the first annotation name for the given stereotype.- Specified by:
getDeclaredAnnotationTypeByStereotypein interfaceAnnotationMetadata- Specified by:
getDeclaredAnnotationTypeByStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The stereotype- Returns:
- The annotation name
-
getDeclaredAnnotationValuesByName
Description copied from interface:AnnotationMetadataGets only declared annotation values by the given type name. A repeatable annotation lists each of its declared occurrences, a non-repeatable declared annotation is a single-element list and an absent one an empty list, mirroringAnnotationMetadata.getAnnotationValuesByName(String).- Specified by:
getDeclaredAnnotationValuesByNamein interfaceAnnotationMetadata- Specified by:
getDeclaredAnnotationValuesByNamein interfaceAnnotationMetadataDelegate- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation type- Returns:
- A list of values
-
getDeclaredAnnotationValuesByType
public <A extends Annotation> List<AnnotationValue<A>> getDeclaredAnnotationValuesByType(Class<A> p0) Description copied from interface:AnnotationMetadataGets only declared annotation values by the given repeatable type.- Specified by:
getDeclaredAnnotationValuesByTypein interfaceAnnotationMetadata- Specified by:
getDeclaredAnnotationValuesByTypein interfaceAnnotationMetadataDelegate- Type Parameters:
A- The annotation type- Parameters:
p0- The annotation type- Returns:
- A list of values
-
getDeclaredMetadata
Description copied from interface:AnnotationMetadataGets the declared metadata without inherited metdata.A metadata that combines multiple elements, such as the class and the method annotations, is narrowed to the metadata of the element it is declared on; a subsequent call narrows that metadata to the annotations the element itself declares, excluding the ones inherited from the super elements. A metadata that is already declared only is returned unchanged.
- Specified by:
getDeclaredMetadatain interfaceAnnotationMetadata- Specified by:
getDeclaredMetadatain interfaceAnnotationMetadataDelegate- Returns:
- The declared metadata
-
getDeclaredStereotypeAnnotationNames
Description copied from interface:AnnotationMetadataReturns the names of the annotations which are declared stereotypes.A stereotype is a meta-annotation (an annotation declared on another annotation).
A stereotype is considered declared when it it is a meta-annotation that is present on an annotation directly declared on the element and not inherited from a super class.
- Specified by:
getDeclaredStereotypeAnnotationNamesin interfaceAnnotationMetadata- Specified by:
getDeclaredStereotypeAnnotationNamesin interfaceAnnotationMetadataDelegate- Returns:
- The names of the stereotype annotations
- See Also:
-
getDefaultValue
Description copied from interface:AnnotationMetadataReturn the default value for the given annotation member.- Specified by:
getDefaultValuein interfaceAnnotationMetadata- Specified by:
getDefaultValuein interfaceAnnotationMetadataDelegate- Type Parameters:
V- The required generic type- Parameters:
p0- The annotationp1- The memberp2- The required type- Returns:
- An optional value
-
getDefaultValue
Description copied from interface:AnnotationMetadataReturn the default value for the given annotation member.- Specified by:
getDefaultValuein interfaceAnnotationMetadata- Specified by:
getDefaultValuein interfaceAnnotationMetadataDelegate- Type Parameters:
V- The required generic type- Parameters:
p0- The annotationp1- The memberp2- The required type- Returns:
- An optional value
-
getDefaultValue
Description copied from interface:AnnotationMetadataReturn the default value for the given annotation member.- Specified by:
getDefaultValuein interfaceAnnotationMetadata- Specified by:
getDefaultValuein interfaceAnnotationMetadataDelegate- Type Parameters:
V- The required generic type- Parameters:
p0- The annotationp1- The memberp2- The required type- Returns:
- An optional value
-
getDefaultValue
Description copied from interface:AnnotationMetadataReturn the default value for the given annotation member.- Specified by:
getDefaultValuein interfaceAnnotationMetadata- Specified by:
getDefaultValuein interfaceAnnotationMetadataDelegate- Type Parameters:
V- The required generic type- Parameters:
p0- The annotationp1- The memberp2- The required type- Returns:
- An optional value
-
getDefaultValues
Description copied from interface:AnnotationMetadataReturn the default values for the given annotation name.- Specified by:
getDefaultValuesin interfaceAnnotationMetadata- Specified by:
getDefaultValuesin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation name- Returns:
- The default values
-
getStereotypeAnnotationNames
Description copied from interface:AnnotationMetadataReturns the names of the annotations which are stereotypes.A stereotype is a meta-annotation (an annotation declared on another annotation).
- Specified by:
getStereotypeAnnotationNamesin interfaceAnnotationMetadata- Specified by:
getStereotypeAnnotationNamesin interfaceAnnotationMetadataDelegate- Returns:
- The names of the stereotype annotations
- See Also:
-
getTargetAnnotationMetadata
Description copied from interface:AnnotationSourceUnwraps possible delegate or provider.- Specified by:
getTargetAnnotationMetadatain interfaceAnnotationMetadata- Specified by:
getTargetAnnotationMetadatain interfaceAnnotationMetadataDelegate- Specified by:
getTargetAnnotationMetadatain interfaceAnnotationMetadataProvider- Specified by:
getTargetAnnotationMetadatain interfaceAnnotationSource- Returns:
- unwrapped
- See Also:
-
getValue
Description copied from interface:AnnotationMetadataGet the value of default "value" the given annotation.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation class- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of default "value" the given annotation.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
V- Generic type- Parameters:
p0- The annotation classp1- requiredType- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of default "value" the given annotation.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
V- Generic type- Parameters:
p0- The annotation classp1- requiredType- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of the given annotation member.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation classp1- The annotation member- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of the given annotation member.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
V- The value- Parameters:
p0- The annotation classp1- The annotation memberp2- The required type- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of the given annotation member.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
V- The value- Parameters:
p0- The annotation classp1- The annotation memberp2- The required type- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of default "value" the given annotation.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation class- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of default "value" the given annotation.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
V- Generic type- Parameters:
p0- The annotation classp1- requiredType- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of default "value" the given annotation.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
V- The value- Parameters:
p0- The annotation classp1- The required type- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of the given annotation member.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation classp1- The annotation member- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of the given annotation member.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
V- The value- Parameters:
p0- The annotation classp1- The annotation memberp2- The required type- Returns:
- An
Optionalof the value
-
getValue
Description copied from interface:AnnotationMetadataGet the value of the given annotation member.- Specified by:
getValuein interfaceAnnotationMetadata- Specified by:
getValuein interfaceAnnotationMetadataDelegate- Type Parameters:
V- The value- Parameters:
p0- The annotation classp1- The annotation memberp2- The required type- Returns:
- An
Optionalof the value
-
getValues
Description copied from interface:AnnotationMetadataGet all values for the given annotation.- Specified by:
getValuesin interfaceAnnotationMetadata- Specified by:
getValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
V- Generic type- Parameters:
p0- The annotation namep1- valueType- Returns:
- The
OptionalValues
-
getValues
Description copied from interface:AnnotationMetadataGet all values for the given annotation and type of the underlying values.- Specified by:
getValuesin interfaceAnnotationMetadata- Specified by:
getValuesin interfaceAnnotationMetadataDelegate- Type Parameters:
V- Generic type- Parameters:
p0- The annotation namep1- valueType- Returns:
- The
OptionalValues
-
hasAnnotation
Description copied from interface:AnnotationMetadataChecks whether this object has the given annotation on the object itself or inherited from a parent.- Specified by:
hasAnnotationin interfaceAnnotationMetadata- Specified by:
hasAnnotationin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- True if the annotation is present
-
hasAnnotation
Description copied from interface:AnnotationMetadataChecks whether this object has the given annotation on the object itself or inherited from a parent.- Specified by:
hasAnnotationin interfaceAnnotationMetadata- Specified by:
hasAnnotationin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- True if the annotation is present
-
hasDeclaredAnnotation
Description copied from interface:AnnotationMetadataChecks whether this object has the given annotation directly declared on the object.- Specified by:
hasDeclaredAnnotationin interfaceAnnotationMetadata- Specified by:
hasDeclaredAnnotationin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- True if the annotation is present
-
hasDeclaredAnnotation
Description copied from interface:AnnotationMetadataChecks whether this object has the given annotation directly declared on the object.- Specified by:
hasDeclaredAnnotationin interfaceAnnotationMetadata- Specified by:
hasDeclaredAnnotationin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- True if the annotation is present
-
hasDeclaredStereotype
Description copied from interface:AnnotationMetadataChecks whether this object has any of the given stereotype directly declared on the object.- Specified by:
hasDeclaredStereotypein interfaceAnnotationMetadata- Specified by:
hasDeclaredStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotations- Returns:
- True if any of the given stereotypes are present
-
hasDeclaredStereotype
Description copied from interface:AnnotationMetadataChecks whether this object has the given stereotype directly declared on the object.- Specified by:
hasDeclaredStereotypein interfaceAnnotationMetadata- Specified by:
hasDeclaredStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- True if the annotation is present
-
hasDeclaredStereotype
Description copied from interface:AnnotationMetadataChecks whether this object has the given annotation stereotype on the object itself and not inherited from a parent
.An annotation stereotype is a meta annotation potentially applied to another annotation
- Specified by:
hasDeclaredStereotypein interfaceAnnotationMetadata- Specified by:
hasDeclaredStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- True if the annotation is present
-
hasSimpleAnnotation
Description copied from interface:AnnotationMetadataChecks whether the given annotation simple name (name without the package) is present in the annotations.- Specified by:
hasSimpleAnnotationin interfaceAnnotationMetadata- Specified by:
hasSimpleAnnotationin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- True if the annotation is present
-
hasSimpleDeclaredAnnotation
Description copied from interface:AnnotationMetadataChecks whether the given annotation simple name (name without the package) is present in the declared annotations.- Specified by:
hasSimpleDeclaredAnnotationin interfaceAnnotationMetadata- Specified by:
hasSimpleDeclaredAnnotationin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- True if the annotation is present
-
hasStereotype
Description copied from interface:AnnotationMetadataCheck whether any of the given stereotypes is present.- Specified by:
hasStereotypein interfaceAnnotationMetadata- Specified by:
hasStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotations- Returns:
- True if any of the given stereotypes are present
-
hasStereotype
Description copied from interface:AnnotationMetadataCheck whether any of the given stereotypes is present.- Specified by:
hasStereotypein interfaceAnnotationMetadata- Specified by:
hasStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotations- Returns:
- True if any of the given stereotypes are present
-
hasStereotype
Description copied from interface:AnnotationMetadataChecks whether this object has the given annotation stereotype on the object itself or inherited from a parent
.An annotation stereotype is a meta annotation potentially applied to another annotation
- Specified by:
hasStereotypein interfaceAnnotationMetadata- Specified by:
hasStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- True if the annotation is present
-
hasStereotype
Description copied from interface:AnnotationMetadataChecks whether this object has the given annotation stereotype on the object itself or inherited from a parent
.An annotation stereotype is a meta annotation potentially applied to another annotation
- Specified by:
hasStereotypein interfaceAnnotationMetadata- Specified by:
hasStereotypein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- True if the annotation is present
-
intValue
Description copied from interface:AnnotationMetadataThe value as anOptionalIntfor the given annotation and member.- Specified by:
intValuein interfaceAnnotationMetadata- Specified by:
intValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- THe
OptionalIntvalue
-
intValue
Description copied from interface:AnnotationMetadataThe value as anOptionalIntfor the given annotation and member.- Specified by:
intValuein interfaceAnnotationMetadata- Specified by:
intValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The member- Returns:
- THe
OptionalIntvalue
-
intValue
Description copied from interface:AnnotationMetadataThe value as anOptionalIntfor the given annotation and member.- Specified by:
intValuein interfaceAnnotationMetadata- Specified by:
intValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The member- Returns:
- THe
OptionalIntvalue
-
isAnnotationPresent
Description copied from interface:AnnotationSourceReturn whether an annotation is present.- Specified by:
isAnnotationPresentin interfaceAnnotationMetadata- Specified by:
isAnnotationPresentin interfaceAnnotationMetadataDelegate- Specified by:
isAnnotationPresentin interfaceAnnotationMetadataProvider- Specified by:
isAnnotationPresentin interfaceAnnotationSource- Parameters:
p0- The annotation class- Returns:
- True if it is
- See Also:
-
isDeclaredAnnotationPresent
Description copied from interface:AnnotationSourceVariation ofAnnotationSource.isAnnotationPresent(Class)for declared annotations.- Specified by:
isDeclaredAnnotationPresentin interfaceAnnotationMetadata- Specified by:
isDeclaredAnnotationPresentin interfaceAnnotationMetadataDelegate- Specified by:
isDeclaredAnnotationPresentin interfaceAnnotationMetadataProvider- Specified by:
isDeclaredAnnotationPresentin interfaceAnnotationSource- Parameters:
p0- The annotation class- Returns:
- True if it is
- See Also:
-
isEmpty
public boolean isEmpty()Description copied from interface:AnnotationMetadataIs the annotation metadata empty.- Specified by:
isEmptyin interfaceAnnotationMetadata- Specified by:
isEmptyin interfaceAnnotationMetadataDelegate- Returns:
- True if it is
-
isFalse
Description copied from interface:AnnotationMetadataReturns whether the value of the given member is true.- Specified by:
isFalsein interfaceAnnotationMetadata- Specified by:
isFalsein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation classp1- The annotation member- Returns:
- True if the value is true
-
isFalse
Description copied from interface:AnnotationMetadataReturns whether the value of the given member is true.- Specified by:
isFalsein interfaceAnnotationMetadata- Specified by:
isFalsein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation classp1- The annotation member- Returns:
- True if the value is true
-
isPresent
Description copied from interface:AnnotationMetadataReturns whether the value of the given member is present.- Specified by:
isPresentin interfaceAnnotationMetadata- Specified by:
isPresentin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation classp1- The annotation member- Returns:
- True if the value is true
-
isPresent
Description copied from interface:AnnotationMetadataReturns whether the value of the given member is present.- Specified by:
isPresentin interfaceAnnotationMetadata- Specified by:
isPresentin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation classp1- The annotation member- Returns:
- True if the value is true
-
isRepeatableAnnotation
Description copied from interface:AnnotationMetadataIs repeatable annotation?- Specified by:
isRepeatableAnnotationin interfaceAnnotationMetadata- Specified by:
isRepeatableAnnotationin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- true if repeatable
-
isRepeatableAnnotation
Description copied from interface:AnnotationMetadataIs repeatable annotation?- Specified by:
isRepeatableAnnotationin interfaceAnnotationMetadata- Specified by:
isRepeatableAnnotationin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- true if repeatable
-
isTrue
Description copied from interface:AnnotationMetadataReturns whether the value of the given member is true.- Specified by:
isTruein interfaceAnnotationMetadata- Specified by:
isTruein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation classp1- The annotation member- Returns:
- True if the value is true
-
isTrue
Description copied from interface:AnnotationMetadataReturns whether the value of the given member is true.- Specified by:
isTruein interfaceAnnotationMetadata- Specified by:
isTruein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation classp1- The annotation member- Returns:
- True if the value is true
-
longValue
Description copied from interface:AnnotationMetadataThe value as anOptionalLongfor the given annotation and member.- Specified by:
longValuein interfaceAnnotationMetadata- Specified by:
longValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The member- Returns:
- THe
OptionalLongvalue
-
longValue
Description copied from interface:AnnotationMetadataThe value as anOptionalLongfor the given annotation and member.- Specified by:
longValuein interfaceAnnotationMetadata- Specified by:
longValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The member- Returns:
- THe
OptionalLongvalue
-
stringValue
Description copied from interface:AnnotationMetadataThe value as an optional string for the given annotation and member.- Specified by:
stringValuein interfaceAnnotationMetadata- Specified by:
stringValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- The string value if it is present
-
stringValue
Description copied from interface:AnnotationMetadataThe value as an optional string for the given annotation and member.- Specified by:
stringValuein interfaceAnnotationMetadata- Specified by:
stringValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The member- Returns:
- The string value if it is present
-
stringValue
Description copied from interface:AnnotationMetadataThe value as an optional string for the given annotation and member.- Specified by:
stringValuein interfaceAnnotationMetadata- Specified by:
stringValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- The string value if it is present
-
stringValue
Description copied from interface:AnnotationMetadataThe value as an optional string for the given annotation and member.- Specified by:
stringValuein interfaceAnnotationMetadata- Specified by:
stringValuein interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The member- Returns:
- The string value if it is present
-
stringValues
Description copied from interface:AnnotationMetadataThe values as string array for the given annotation and member.- Specified by:
stringValuesin interfaceAnnotationMetadata- Specified by:
stringValuesin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- The string values if it is present
-
stringValues
Description copied from interface:AnnotationMetadataThe values as string array for the given annotation and member.- Specified by:
stringValuesin interfaceAnnotationMetadata- Specified by:
stringValuesin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The member- Returns:
- The string values if it is present
-
stringValues
Description copied from interface:AnnotationMetadataThe values as string array for the given annotation and member.- Specified by:
stringValuesin interfaceAnnotationMetadata- Specified by:
stringValuesin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotation- Returns:
- The string values if it is present
-
stringValues
Description copied from interface:AnnotationMetadataThe values as string array for the given annotation and member.- Specified by:
stringValuesin interfaceAnnotationMetadata- Specified by:
stringValuesin interfaceAnnotationMetadataDelegate- Parameters:
p0- The annotationp1- The member- Returns:
- The string values if it is present
-
synthesize
Description copied from interface:AnnotationSourceSynthesizes a new annotation from the metadata for the given annotation type. This method works by creating a runtime proxy of the annotation interface and should be avoided in favour of direct use of the annotation metadata and only used for unique cases that require integrating third party libraries.- Specified by:
synthesizein interfaceAnnotationMetadataDelegate- Specified by:
synthesizein interfaceAnnotationMetadataProvider- Specified by:
synthesizein interfaceAnnotationSource- Type Parameters:
A- The annotation generic type- Parameters:
p0- The annotation class- Returns:
- The annotation or null if it doesn't exist
-
synthesize
Description copied from interface:AnnotationSourceSynthesizes a new annotation for the given annotation type using the member values of the given source annotation.This method allows supporting synthesizing annotations that have been renamed, for example a
jakarta.inject.Namedannotation an be synthesized from the metadata of the ajakarta.inject.Namedannotation.- Specified by:
synthesizein interfaceAnnotationMetadataDelegate- Specified by:
synthesizein interfaceAnnotationSource- Type Parameters:
A- The annotation generic type- Parameters:
p0- The annotation classp1- The source annotation that provides the member values- Returns:
- The annotation or null if it doesn't exist
-
synthesizeAll
Description copied from interface:AnnotationSourceSynthesizes a new annotations from the metadata. This method works by creating a runtime proxy of the annotation interface and should be avoided in favour of direct use of the annotation metadata and only used for unique cases that require integrating third party libraries.- Specified by:
synthesizeAllin interfaceAnnotationMetadataDelegate- Specified by:
synthesizeAllin interfaceAnnotationMetadataProvider- Specified by:
synthesizeAllin interfaceAnnotationSource- Returns:
- All the annotations
-
synthesizeAnnotationsByType
Description copied from interface:AnnotationSourceSynthesizes a new annotations from the metadata for the given type. This method works by creating a runtime proxy of the annotation interface and should be avoided in favour of direct use of the annotation metadata and only used for unique cases that require integrating third party libraries.- Specified by:
synthesizeAnnotationsByTypein interfaceAnnotationMetadataDelegate- Specified by:
synthesizeAnnotationsByTypein interfaceAnnotationMetadataProvider- Specified by:
synthesizeAnnotationsByTypein interfaceAnnotationSource- Type Parameters:
A- The annotation generic type- Parameters:
p0- The annotation type- Returns:
- All annotations by the given type
-
synthesizeDeclared
Description copied from interface:AnnotationSourceSynthesizes a new annotations from the metadata. This method works by creating a runtime proxy of the annotation interface and should be avoided in favour of direct use of the annotation metadata and only used for unique cases that require integrating third party libraries.- Specified by:
synthesizeDeclaredin interfaceAnnotationMetadataDelegate- Specified by:
synthesizeDeclaredin interfaceAnnotationMetadataProvider- Specified by:
synthesizeDeclaredin interfaceAnnotationSource- Returns:
- All declared annotations
-
synthesizeDeclared
Description copied from interface:AnnotationSourceSynthesizes a new annotation from the metadata for the given annotation type. This method works by creating a runtime proxy of the annotation interface and should be avoided in favour of direct use of the annotation metadata and only used for unique cases that require integrating third party libraries.This method ignores inherited annotations. (Returns null if no annotations are directly present on this element.)
- Specified by:
synthesizeDeclaredin interfaceAnnotationMetadataDelegate- Specified by:
synthesizeDeclaredin interfaceAnnotationMetadataProvider- Specified by:
synthesizeDeclaredin interfaceAnnotationSource- Type Parameters:
A- The annotation generic type- Parameters:
p0- The annotation class- Returns:
- The annotation or null if it doesn't exist
-
synthesizeDeclared
Description copied from interface:AnnotationSourceSynthesizes a new annotation declared for the given annotation type using the member values of the given source annotation.This method allows supporting synthesizing annotations that have been renamed, for example a
jakarta.inject.Namedannotation an be synthesized from the metadata of the ajakarta.inject.Namedannotation.- Specified by:
synthesizeDeclaredin interfaceAnnotationMetadataDelegate- Specified by:
synthesizeDeclaredin interfaceAnnotationSource- Type Parameters:
A- The annotation generic type- Parameters:
p0- The annotation classp1- The source annotation that provides the member values- Returns:
- The annotation or null if it doesn't exist
-
synthesizeDeclaredAnnotationsByType
Description copied from interface:AnnotationSourceSynthesizes a new annotations from the metadata for the given type. This method works by creating a runtime proxy of the annotation interface and should be avoided in favour of direct use of the annotation metadata and only used for unique cases that require integrating third party libraries.- Specified by:
synthesizeDeclaredAnnotationsByTypein interfaceAnnotationMetadataDelegate- Specified by:
synthesizeDeclaredAnnotationsByTypein interfaceAnnotationMetadataProvider- Specified by:
synthesizeDeclaredAnnotationsByTypein interfaceAnnotationSource- Type Parameters:
A- The annotation generic type- Parameters:
p0- The annotation type- Returns:
- Declared annotations by the given type
-
isEnabled
Description copied from interface:BeanContextConditionalReturn whether this component is enabled for the given context.- Specified by:
isEnabledin interfaceBeanContextConditional- Parameters:
context- The contextresolutionContext- The bean resolution context- Returns:
- True if it is
-
onFail
protected final void onFail(io.micronaut.context.DefaultConditionContext<io.micronaut.context.AbstractBeanContextConditional> conditionContext, BeanContext context)
-
ParametrizedInstantiatableBeanDefinition