Interface BeanConstructor<T>

Type Parameters:
T - The bean type
All Superinterfaces:
AnnotationMetadataProvider, AnnotationSource, Described
All Known Implementing Classes:
AbstractBeanConstructor, AbstractBeanDefinitionBeanConstructor

public interface BeanConstructor<T> extends AnnotationMetadataProvider, Described
Models a bean constructor.
Since:
3.0.0
Author:
graemerocher
  • Method Details

    • getDeclaringBeanType

      @NonNull @NonNull Class<T> getDeclaringBeanType()
      Returns the bean type.
      Returns:
      The underlying bean type
    • getArguments

      @NonNull @NonNull Argument<?>[] getArguments()
      Returns:
      The constructor argument types.
    • instantiate

      @NonNull T instantiate(Object... parameterValues)
      Instantiate an instance.
      Parameters:
      parameterValues - The parameter values
      Returns:
      The instance, never null.
    • getDescription

      @NonNull default @NonNull String getDescription()
      The description of the constructor.
      Specified by:
      getDescription in interface Described
      Returns:
      The description
    • getDescription

      @NonNull default @NonNull String getDescription(boolean simple)
      The description of the constructor.
      Specified by:
      getDescription in interface Described
      Parameters:
      simple - Whether to return a simple representation without package names
      Returns:
      The description