Class AbstractInitializableBeanIntrospection<B>
- Type Parameters:
B- The bean type
- All Implemented Interfaces:
AnnotationMetadata, AnnotationMetadataDelegate, AnnotationMetadataProvider, AnnotationSource, BeanInfo<B>, BeanIntrospection<B>, UnsafeBeanInstantiationIntrospection<B>, Ordered, ArgumentCoercible<B>
- Direct Known Subclasses:
AbstractInitializableBeanIntrospectionAndReference
BeanIntrospection interface. This class is subclassed at compilation time by generated bytecode and should not be used directly.
The generated subclass uses method dispatch to access the bean instance. Boxed dispatch
methods provide the general reflection-free access path, while the primitive dispatch
methods exist for generated UnsafeBeanReadProperty and UnsafeBeanWriteProperty
implementations that need to avoid primitive boxing in hot paths.
- Since:
- 3.1
- Author:
- Denis Stepanov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBean method compile-time data container.static final classBean property compile-time data container.Nested classes/interfaces inherited from interface BeanIntrospection
BeanIntrospection.Builder<T> -
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
ConstructorsModifierConstructorDescriptionprotectedAbstractInitializableBeanIntrospection(Class<B> beanType, @Nullable AnnotationMetadata annotationMetadata, @Nullable AnnotationMetadata constructorAnnotationMetadata, @Nullable Argument<?>[] constructorArguments, @Nullable AbstractInitializableBeanIntrospection.BeanPropertyRef<Object>[] propertiesRefs, @Nullable AbstractInitializableBeanIntrospection.BeanMethodRef<Object>[] methodsRefs) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected <V> @Nullable VTriggers the invocation of the method at index.protected booleandispatchGetBoolean(int index, Object target) Triggers the primitive boolean getter invocation at index.protected bytedispatchGetByte(int index, Object target) Triggers the primitive byte getter invocation at index.protected chardispatchGetChar(int index, Object target) Triggers the primitive char getter invocation at index.protected doubledispatchGetDouble(int index, Object target) Triggers the primitive double getter invocation at index.protected floatdispatchGetFloat(int index, Object target) Triggers the primitive float getter invocation at index.protected intdispatchGetInt(int index, Object target) Triggers the primitive int getter invocation at index.protected longdispatchGetLong(int index, Object target) Triggers the primitive long getter invocation at index.protected shortdispatchGetShort(int index, Object target) Triggers the primitive short getter invocation at index.protected <V> @Nullable VdispatchOne(int index, Object target, @Nullable Object arg) Triggers the invocation of the method at index for a single-argument call, avoiding wrapping the value in anObject[]array.protected voiddispatchOneVoid(int index, Object target, @Nullable Object arg) Triggers the invocation of the void method at index for a single argument call.protected @Nullable ObjectdispatchSetBoolean(int index, Object target, boolean value) Triggers the primitive boolean setter invocation at index.protected voiddispatchSetBooleanVoid(int index, Object target, boolean value) Triggers the primitive boolean setter invocation at index.protected @Nullable ObjectdispatchSetByte(int index, Object target, byte value) Triggers the primitive byte setter invocation at index.protected voiddispatchSetByteVoid(int index, Object target, byte value) Triggers the primitive byte setter invocation at index.protected @Nullable ObjectdispatchSetChar(int index, Object target, char value) Triggers the primitive char setter invocation at index.protected voiddispatchSetCharVoid(int index, Object target, char value) Triggers the primitive char setter invocation at index.protected @Nullable ObjectdispatchSetDouble(int index, Object target, double value) Triggers the primitive double setter invocation at index.protected voiddispatchSetDoubleVoid(int index, Object target, double value) Triggers the primitive double setter invocation at index.protected @Nullable ObjectdispatchSetFloat(int index, Object target, float value) Triggers the primitive float setter invocation at index.protected voiddispatchSetFloatVoid(int index, Object target, float value) Triggers the primitive float setter invocation at index.protected @Nullable ObjectdispatchSetInt(int index, Object target, int value) Triggers the primitive int setter invocation at index.protected voiddispatchSetIntVoid(int index, Object target, int value) Triggers the primitive int setter invocation at index.protected @Nullable ObjectdispatchSetLong(int index, Object target, long value) Triggers the primitive long setter invocation at index.protected voiddispatchSetLongVoid(int index, Object target, long value) Triggers the primitive long setter invocation at index.protected @Nullable ObjectdispatchSetShort(int index, Object target, short value) Triggers the primitive short setter invocation at index.protected voiddispatchSetShortVoid(int index, Object target, short value) Triggers the primitive short setter invocation at index.boolean@Nullable BeanProperty<B, Object> findIndexedProperty(Class<? extends Annotation> annotationType, String annotationValue) Get all the bean properties annotated for the given type.protected final MethodgetAccessibleTargetMethodByIndex(int index) FindMethodrepresentation at the method by index.Supplies the metadata.Returns theBeanMethodinstances for this introspection.protected Collection<BeanProperty<B, Object>> getBeanPropertiesIndexedSubset(int[] indexes) Returns subset of bean properties defined by an array of indexes.The bean type.Argument<?>[]The constructor arguments needed to instantiate the bean.getIndexedProperties(Class<? extends Annotation> annotationType) Get all the bean properties annotated for the given annotation type.getIndexedProperty(Class<? extends Annotation> annotationType, String annotationValue) Get all the bean properties annotated for the given type.getProperty(String name) Obtain a property by name.protected BeanProperty<B, Object> getPropertyByIndex(int index) Obtain a property by its index.protected abstract MethodgetTargetMethodByIndex(int index) FindMethodrepresentation at the method by index.protected booleanWhether an accessible constructor exists.inthashCode()Instantiates an instance of the bean, throwing an exception is instantiation is not possible.instantiate(boolean strictNullable, @Nullable Object... arguments) Instantiates an instance of the bean, throwing an exception is instantiation is not possible.protected BinstantiateInternal(@Nullable Object @Nullable [] arguments) Reflection free bean instantiation implementation for the given arguments.instantiateUnsafe(@Nullable Object @Nullable ... arguments) Instantiates an instance of the bean.intpropertyIndexOf(String name) Obtain the property index position.toString()protected final RuntimeExceptionunknownDispatchAtIndexException(int index) Creates a new exception when the dispatch at index is not found.Methods inherited from interface AnnotationMetadata
enumValuesSet, enumValuesSet, getValues, hasDeclaredStereotype, hasEvaluatedExpressions, hasStereotypeNonRepeating, isAnnotationPresent, isDeclaredAnnotationPresentMethods inherited from interface AnnotationMetadataDelegate
booleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, copyAnnotationMetadata, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, findRepeatableAnnotation, findRepeatableAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByName, getAnnotationValuesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByName, getDeclaredAnnotationValuesByType, getDeclaredMetadata, getDeclaredStereotypeAnnotationNames, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getStereotypeAnnotationNames, getTargetAnnotationMetadata, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasPropertyExpressions, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isRepeatableAnnotation, isRepeatableAnnotation, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, stringValues, stringValues, synthesize, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface BeanInfo
asArgument, getGenericBeanType, getOrderMethods inherited from interface BeanIntrospection
getIndexedProperty, getProperty, getPropertyNames, getReadProperty, getReadProperty, getReadPropertyNames, getRequiredProperty, getRequiredReadProperty, getRequiredWriteProperty, getWriteProperty, getWriteProperty, hasBuilder, instantiate, isBuildable
-
Constructor Details
-
AbstractInitializableBeanIntrospection
protected AbstractInitializableBeanIntrospection(Class<B> beanType, @Nullable AnnotationMetadata annotationMetadata, @Nullable AnnotationMetadata constructorAnnotationMetadata, @Nullable Argument<?>[] constructorArguments, @Nullable AbstractInitializableBeanIntrospection.BeanPropertyRef<Object>[] propertiesRefs, @Nullable AbstractInitializableBeanIntrospection.BeanMethodRef<Object>[] methodsRefs)
-
-
Method Details
-
builder
- Specified by:
builderin interfaceBeanIntrospection<B>- Returns:
- Obtain a builder for this introspection.
-
hasConstructor
protected boolean hasConstructor()Whether an accessible constructor exists.- Returns:
- True if a default constructor exists
- Since:
- 4.7.11
-
instantiateInternal
-
getPropertyByIndex
Obtain a property by its index.- Parameters:
index- The index of the property- Returns:
- A bean property
-
propertyIndexOf
Description copied from interface:BeanIntrospectionObtain the property index position.- Specified by:
propertyIndexOfin interfaceBeanIntrospection<B>- Parameters:
name- The name of the property- Returns:
- A property index or -1 of not found.
-
getTargetMethodByIndex
FindMethodrepresentation at the method by index. Used byMethodReference.getTargetMethod().- Parameters:
index- The index- Returns:
- The method
-
getAccessibleTargetMethodByIndex
FindMethodrepresentation at the method by index. Used byMethodReference.getTargetMethod().- Parameters:
index- The index- Returns:
- The method
- Since:
- 3.8.5
-
dispatch
-
dispatchOne
Triggers the invocation of the method at index for a single-argument call, avoiding wrapping the value in anObject[]array.For no-argument calls (for example, property getters), generated code passes
nullasarg. This is the boxed single-argument dispatch path used by unsafe bean property implementations. Primitive property access uses the type-specific dispatch methods below when generated introspections provide them, so serializers and other hot paths can avoid boxing primitive values.- Type Parameters:
V- The result type- Parameters:
index- The method indextarget- The targetarg- The argument- Returns:
- The result
-
dispatchOneVoid
Triggers the invocation of the void method at index for a single argument call. Allowing to not wrap a single argument in an object array or return a placeholder value.This method is used by setter paths where the caller does not need a return value. The primitive
dispatchSet*Voidmethods below build on this contract and let generated introspections avoid both a synthetic return value and primitive boxing.- Parameters:
index- The method indextarget- The targetarg- The argument- Since:
- 5.1.0
-
dispatchGetBoolean
Triggers the primitive boolean getter invocation at index.The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object). Generated introspections override this method with a primitive switch dispatch to avoid boxing in hot paths. It backsUnsafeBeanReadProperty.getBooleanUnsafe(Object)for generated bean properties.- Parameters:
index- The method indextarget- The target- Returns:
- The primitive value
- Since:
- 5.1.0
-
dispatchGetByte
Triggers the primitive byte getter invocation at index.The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object). Generated introspections override this method with a primitive switch dispatch to avoid boxing in hot paths. It backsUnsafeBeanReadProperty.getByteUnsafe(Object)for generated bean properties.- Parameters:
index- The method indextarget- The target- Returns:
- The primitive value
- Since:
- 5.1.0
-
dispatchGetShort
Triggers the primitive short getter invocation at index.The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object). Generated introspections override this method with a primitive switch dispatch to avoid boxing in hot paths. It backsUnsafeBeanReadProperty.getShortUnsafe(Object)for generated bean properties.- Parameters:
index- The method indextarget- The target- Returns:
- The primitive value
- Since:
- 5.1.0
-
dispatchGetChar
Triggers the primitive char getter invocation at index.The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object). Generated introspections override this method with a primitive switch dispatch to avoid boxing in hot paths. It backsUnsafeBeanReadProperty.getCharUnsafe(Object)for generated bean properties.- Parameters:
index- The method indextarget- The target- Returns:
- The primitive value
- Since:
- 5.1.0
-
dispatchGetInt
Triggers the primitive int getter invocation at index.The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object). Generated introspections override this method with a primitive switch dispatch to avoid boxing in hot paths. It backsUnsafeBeanReadProperty.getIntUnsafe(Object)for generated bean properties.- Parameters:
index- The method indextarget- The target- Returns:
- The primitive value
- Since:
- 5.1.0
-
dispatchGetLong
Triggers the primitive long getter invocation at index.The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object). Generated introspections override this method with a primitive switch dispatch to avoid boxing in hot paths. It backsUnsafeBeanReadProperty.getLongUnsafe(Object)for generated bean properties.- Parameters:
index- The method indextarget- The target- Returns:
- The primitive value
- Since:
- 5.1.0
-
dispatchGetFloat
Triggers the primitive float getter invocation at index.The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object). Generated introspections override this method with a primitive switch dispatch to avoid boxing in hot paths. It backsUnsafeBeanReadProperty.getFloatUnsafe(Object)for generated bean properties.- Parameters:
index- The method indextarget- The target- Returns:
- The primitive value
- Since:
- 5.1.0
-
dispatchGetDouble
Triggers the primitive double getter invocation at index.The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object). Generated introspections override this method with a primitive switch dispatch to avoid boxing in hot paths. It backsUnsafeBeanReadProperty.getDoubleUnsafe(Object)for generated bean properties.- Parameters:
index- The method indextarget- The target- Returns:
- The primitive value
- Since:
- 5.1.0
-
dispatchSetBoolean
Triggers the primitive boolean setter invocation at index.Generated introspections may override this method to dispatch primitive write/copy-constructor paths without boxing before the switch. The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Returns:
- The dispatch result
- Since:
- 5.1.0
-
dispatchSetBooleanVoid
Triggers the primitive boolean setter invocation at index.Generated introspections may override this method to dispatch mutable setter paths without boxing before the switch and without producing a return value. The base implementation preserves compatibility by boxing through
dispatchOneVoid(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Since:
- 5.1.0
-
dispatchSetByte
Triggers the primitive byte setter invocation at index.Generated introspections may override this method to dispatch primitive write/copy-constructor paths without boxing before the switch. The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Returns:
- The dispatch result
- Since:
- 5.1.0
-
dispatchSetByteVoid
Triggers the primitive byte setter invocation at index.Generated introspections may override this method to dispatch mutable setter paths without boxing before the switch and without producing a return value. The base implementation preserves compatibility by boxing through
dispatchOneVoid(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Since:
- 5.1.0
-
dispatchSetShort
Triggers the primitive short setter invocation at index.Generated introspections may override this method to dispatch primitive write/copy-constructor paths without boxing before the switch. The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Returns:
- The dispatch result
- Since:
- 5.1.0
-
dispatchSetShortVoid
Triggers the primitive short setter invocation at index.Generated introspections may override this method to dispatch mutable setter paths without boxing before the switch and without producing a return value. The base implementation preserves compatibility by boxing through
dispatchOneVoid(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Since:
- 5.1.0
-
dispatchSetChar
Triggers the primitive char setter invocation at index.Generated introspections may override this method to dispatch primitive write/copy-constructor paths without boxing before the switch. The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Returns:
- The dispatch result
- Since:
- 5.1.0
-
dispatchSetCharVoid
Triggers the primitive char setter invocation at index.Generated introspections may override this method to dispatch mutable setter paths without boxing before the switch and without producing a return value. The base implementation preserves compatibility by boxing through
dispatchOneVoid(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Since:
- 5.1.0
-
dispatchSetInt
Triggers the primitive int setter invocation at index.Generated introspections may override this method to dispatch primitive write/copy-constructor paths without boxing before the switch. The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Returns:
- The dispatch result
- Since:
- 5.1.0
-
dispatchSetIntVoid
Triggers the primitive int setter invocation at index.Generated introspections may override this method to dispatch mutable setter paths without boxing before the switch and without producing a return value. The base implementation preserves compatibility by boxing through
dispatchOneVoid(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Since:
- 5.1.0
-
dispatchSetLong
Triggers the primitive long setter invocation at index.Generated introspections may override this method to dispatch primitive write/copy-constructor paths without boxing before the switch. The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Returns:
- The dispatch result
- Since:
- 5.1.0
-
dispatchSetLongVoid
Triggers the primitive long setter invocation at index.Generated introspections may override this method to dispatch mutable setter paths without boxing before the switch and without producing a return value. The base implementation preserves compatibility by boxing through
dispatchOneVoid(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Since:
- 5.1.0
-
dispatchSetFloat
Triggers the primitive float setter invocation at index.Generated introspections may override this method to dispatch primitive write/copy-constructor paths without boxing before the switch. The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Returns:
- The dispatch result
- Since:
- 5.1.0
-
dispatchSetFloatVoid
Triggers the primitive float setter invocation at index.Generated introspections may override this method to dispatch mutable setter paths without boxing before the switch and without producing a return value. The base implementation preserves compatibility by boxing through
dispatchOneVoid(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Since:
- 5.1.0
-
dispatchSetDouble
Triggers the primitive double setter invocation at index.Generated introspections may override this method to dispatch primitive write/copy-constructor paths without boxing before the switch. The base implementation preserves compatibility by boxing through
dispatchOne(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Returns:
- The dispatch result
- Since:
- 5.1.0
-
dispatchSetDoubleVoid
Triggers the primitive double setter invocation at index.Generated introspections may override this method to dispatch mutable setter paths without boxing before the switch and without producing a return value. The base implementation preserves compatibility by boxing through
dispatchOneVoid(int, Object, Object).- Parameters:
index- The method indextarget- The targetvalue- The primitive value- Since:
- 5.1.0
-
unknownDispatchAtIndexException
Creates a new exception when the dispatch at index is not found.- Parameters:
index- The method index- Returns:
- The exception
-
findIndexedProperty
public @Nullable BeanProperty<B,Object> findIndexedProperty(Class<? extends Annotation> annotationType, String annotationValue) Get all the bean properties annotated for the given type. Nullable result method version ofgetIndexedProperty(Class, String).- Parameters:
annotationType- The annotation typeannotationValue- The annotation value- Returns:
- An immutable collection of properties.
- See Also:
-
getIndexedProperties
public Collection<BeanProperty<B,Object>> getIndexedProperties(Class<? extends Annotation> annotationType) Description copied from interface:BeanIntrospectionGet all the bean properties annotated for the given annotation type. If the annotation isIntrospected.indexed()by the given annotation, then it will be included in the resulting list.- Specified by:
getIndexedPropertiesin interfaceBeanIntrospection<B>- Parameters:
annotationType- The annotation type- Returns:
- An immutable collection of properties.
- See Also:
-
getBeanPropertiesIndexedSubset
Returns subset of bean properties defined by an array of indexes.- Parameters:
indexes- The indexes- Returns:
- a collection of bean properties
-
instantiate
Description copied from interface:BeanIntrospectionInstantiates an instance of the bean, throwing an exception is instantiation is not possible.- Specified by:
instantiatein interfaceBeanIntrospection<B>- Returns:
- An instance
- Throws:
InstantiationException- If the bean cannot be instantiated or the arguments are not satisfied.
-
instantiate
public B instantiate(boolean strictNullable, @Nullable Object... arguments) throws InstantiationException Description copied from interface:BeanIntrospectionInstantiates an instance of the bean, throwing an exception is instantiation is not possible.- Specified by:
instantiatein interfaceBeanIntrospection<B>- Parameters:
strictNullable- If true, require null parameters to be annotated with a nullable annotationarguments- The arguments required to instantiate bean. Should match the types returned byBeanIntrospection.getConstructorArguments()- Returns:
- An instance
- Throws:
InstantiationException- If the bean cannot be instantiated.
-
instantiateUnsafe
Description copied from interface:UnsafeBeanInstantiationIntrospectionInstantiates an instance of the bean.- Specified by:
instantiateUnsafein interfaceUnsafeBeanInstantiationIntrospection<B>- Parameters:
arguments- The arguments required to instantiate bean.- Returns:
- An instance
-
getConstructor
- Specified by:
getConstructorin interfaceBeanIntrospection<B>- Returns:
- The bean constructor.
-
getConstructorArguments
Description copied from interface:BeanIntrospectionThe constructor arguments needed to instantiate the bean.- Specified by:
getConstructorArgumentsin interfaceBeanIntrospection<B>- Returns:
- An argument array
-
getIndexedProperty
public Optional<BeanProperty<B,Object>> getIndexedProperty(Class<? extends Annotation> annotationType, String annotationValue) Description copied from interface:BeanIntrospectionGet all the bean properties annotated for the given type.- Specified by:
getIndexedPropertyin interfaceBeanIntrospection<B>- Parameters:
annotationType- The annotation typeannotationValue- The annotation value- Returns:
- An immutable collection of properties.
- See Also:
-
getProperty
Description copied from interface:BeanIntrospectionObtain a property by name.- Specified by:
getPropertyin interfaceBeanIntrospection<B>- Parameters:
name- The name of the property- Returns:
- A bean property if found
-
getAnnotationMetadata
Description copied from interface:AnnotationMetadataProviderSupplies the metadata. Defaults toAnnotationMetadata.EMPTY_METADATA.- Specified by:
getAnnotationMetadatain interfaceAnnotationMetadataProvider- Returns:
- The
AnnotationMetadata
-
getBeanProperties
- Specified by:
getBeanPropertiesin interfaceBeanIntrospection<B>- Returns:
- An immutable collection of properties.
-
getBeanReadProperties
- Specified by:
getBeanReadPropertiesin interfaceBeanIntrospection<B>- Returns:
- An immutable collection of read properties.
-
getBeanWriteProperties
- Specified by:
getBeanWritePropertiesin interfaceBeanIntrospection<B>- Returns:
- An immutable collection of write properties.
-
getBeanType
Description copied from interface:BeanIntrospectionThe bean type.- Specified by:
getBeanTypein interfaceBeanInfo<B>- Specified by:
getBeanTypein interfaceBeanIntrospection<B>- Returns:
- The bean type
-
getBeanMethods
Description copied from interface:BeanIntrospectionReturns theBeanMethodinstances for this introspection.The
BeanMethodinstances are only those methods annotated withio.micronaut.context.annotation.Executableand hence represent a subset of the actual methods of the class and do not include any methods that are exposed asBeanPropertyinstances.- Specified by:
getBeanMethodsin interfaceBeanIntrospection<B>- Returns:
- An immutable collection of methods.
-
equals
-
hashCode
-
toString
-