Package io.micronaut.core.beans
Class AbstractBeanConstructor<T>
java.lang.Object
io.micronaut.core.beans.AbstractBeanConstructor<T>
- Type Parameters:
T
- The bean type
- All Implemented Interfaces:
AnnotationMetadataProvider
,AnnotationSource
,BeanConstructor<T>
,Described
- Direct Known Subclasses:
AbstractBeanDefinitionBeanConstructor
Abstract implementation of the
BeanConstructor
interface.- Since:
- 3.0.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractBeanConstructor
(Class<T> beanType, AnnotationMetadata annotationMetadata, Argument<?>... arguments) Default constructor. -
Method Summary
Modifier and TypeMethodDescriptionSupplies the metadata.Returns the bean type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
Methods inherited from interface io.micronaut.core.beans.BeanConstructor
getDescription, getDescription, instantiate
-
Constructor Details
-
AbstractBeanConstructor
protected AbstractBeanConstructor(Class<T> beanType, AnnotationMetadata annotationMetadata, Argument<?>... arguments) Default constructor.- Parameters:
beanType
- The bean typeannotationMetadata
- The annotation metadataarguments
- The arguments
-
-
Method Details
-
getAnnotationMetadata
Description copied from interface:AnnotationMetadataProvider
Supplies the metadata. Defaults toAnnotationMetadata.EMPTY_METADATA
.- Specified by:
getAnnotationMetadata
in interfaceAnnotationMetadataProvider
- Returns:
- The
AnnotationMetadata
-
getDeclaringBeanType
Description copied from interface:BeanConstructor
Returns the bean type.- Specified by:
getDeclaringBeanType
in interfaceBeanConstructor<T>
- Returns:
- The underlying bean type
-
getArguments
- Specified by:
getArguments
in interfaceBeanConstructor<T>
- Returns:
- The constructor argument types.
-