Package io.micronaut.core.beans
Interface BeanConstructor<T>
- Type Parameters:
T
- The bean type
- All Superinterfaces:
AnnotationMetadataProvider
,AnnotationSource
,Described
- All Known Implementing Classes:
AbstractBeanConstructor
,AbstractBeanDefinitionBeanConstructor
Models a bean constructor.
- Since:
- 3.0.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
Method Summary
Modifier and TypeMethodDescriptionReturns the bean type.The description of the constructor.getDescription
(boolean simple) The description of the constructor.instantiate
(Object... parameterValues) Instantiate an instance.Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, 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
-
Method Details
-
getDeclaringBeanType
Returns the bean type.- Returns:
- The underlying bean type
-
getArguments
- Returns:
- The constructor argument types.
-
instantiate
Instantiate an instance.- Parameters:
parameterValues
- The parameter values- Returns:
- The instance, never null.
-
getDescription
The description of the constructor.- Specified by:
getDescription
in interfaceDescribed
- Returns:
- The description
-
getDescription
The description of the constructor.- Specified by:
getDescription
in interfaceDescribed
- Parameters:
simple
- Whether to return a simple representation without package names- Returns:
- The description
-