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.StringgetDescription()The description of the constructor.default java.lang.StringgetDescription(boolean simple)The description of the constructor.Tinstantiate(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:
getDescriptionin interfaceDescribed- Returns:
- The description
-
getDescription
@NonNull default java.lang.String getDescription(boolean simple)
The description of the constructor.- Specified by:
getDescriptionin interfaceDescribed- Parameters:
simple- Whether to return a simple representation without package names- Returns:
- The description
-
-