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 theBeanConstructorinterface.- Since:
- 3.0.0
-
-
Field Summary
-
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBeanConstructor(java.lang.Class<T> beanType, AnnotationMetadata annotationMetadata, Argument<?>... arguments)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationMetadatagetAnnotationMetadata()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:AnnotationMetadataProviderSupplies the metadata. Defaults toAnnotationMetadata.EMPTY_METADATA.- Specified by:
getAnnotationMetadatain interfaceAnnotationMetadataProvider- Returns:
- The
AnnotationMetadata
-
getDeclaringBeanType
@NonNull public java.lang.Class<T> getDeclaringBeanType()
Description copied from interface:BeanConstructorReturns the bean type.- Specified by:
getDeclaringBeanTypein interfaceBeanConstructor<T>- Returns:
- The underlying bean type
-
getArguments
@NonNull public Argument<?>[] getArguments()
- Specified by:
getArgumentsin interfaceBeanConstructor<T>- Returns:
- The constructor argument types.
-
-