Package io.micronaut.core.beans
Interface BeanConstructor<T>
-
- Type Parameters:
T
- The bean type
- All Superinterfaces:
AnnotationMetadataProvider
,AnnotationSource
,Described
- All Known Implementing Classes:
AbstractBeanConstructor
public interface BeanConstructor<T> extends AnnotationMetadataProvider, Described
Models a bean constructor.- Since:
- 3.0.0
-
-
Field Summary
-
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Argument<?>[]
getArguments()
java.lang.Class<T>
getDeclaringBeanType()
Returns the bean type.default java.lang.String
getDescription()
The description of the constructor.default java.lang.String
getDescription(boolean simple)
The description of the constructor.T
instantiate(java.lang.Object... parameterValues)
Instantiate an instance.-
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, 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 Detail
-
getDeclaringBeanType
@NonNull java.lang.Class<T> getDeclaringBeanType()
Returns the bean type.- Returns:
- The underlying bean type
-
instantiate
@NonNull T instantiate(java.lang.Object... parameterValues)
Instantiate an instance.- Parameters:
parameterValues
- The parameter values- Returns:
- The instance, never null.
-
getDescription
@NonNull default java.lang.String getDescription()
The description of the constructor.- Specified by:
getDescription
in interfaceDescribed
- Returns:
- The description
-
getDescription
@NonNull default java.lang.String getDescription(boolean simple)
The description of the constructor.- Specified by:
getDescription
in interfaceDescribed
- Parameters:
simple
- Whether to return a simple representation without package names- Returns:
- The description
-
-