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
public abstract class AbstractBeanConstructor<T> extends java.lang.Object implements BeanConstructor<T>
Abstract implementation of theBeanConstructor
interface.- Since:
- 3.0.0
-
-
Field Summary
-
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBeanConstructor(java.lang.Class<T> beanType, AnnotationMetadata annotationMetadata, Argument<?>... arguments)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationMetadata
getAnnotationMetadata()
Supplies the metadata.Argument<?>[]
getArguments()
java.lang.Class<T>
getDeclaringBeanType()
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, 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 Detail
-
AbstractBeanConstructor
protected AbstractBeanConstructor(java.lang.Class<T> beanType, AnnotationMetadata annotationMetadata, Argument<?>... arguments)
Default constructor.- Parameters:
beanType
- The bean typeannotationMetadata
- The annotation metadataarguments
- The arguments
-
-
Method Detail
-
getAnnotationMetadata
@NonNull public AnnotationMetadata getAnnotationMetadata()
Description copied from interface:AnnotationMetadataProvider
Supplies the metadata. Defaults toAnnotationMetadata.EMPTY_METADATA
.- Specified by:
getAnnotationMetadata
in interfaceAnnotationMetadataProvider
- Returns:
- The
AnnotationMetadata
-
getDeclaringBeanType
@NonNull public java.lang.Class<T> getDeclaringBeanType()
Description copied from interface:BeanConstructor
Returns the bean type.- Specified by:
getDeclaringBeanType
in interfaceBeanConstructor<T>
- Returns:
- The underlying bean type
-
getArguments
@NonNull public Argument<?>[] getArguments()
- Specified by:
getArguments
in interfaceBeanConstructor<T>
- Returns:
- The constructor argument types.
-
-