Interface BeanCreationInformation

All Known Implementing Classes:
ConstructorBeanCreationInformation, ObjectBeanCreationInformation

public interface BeanCreationInformation
Necessary information for bean creation.
  • Method Summary

    Modifier and Type
    Method
    Description
    createBean(Object... parameters)
    Create a bean instance with the given parameters.
    Class<?>[]
    Get the dependencies of the bean.
  • Method Details

    • getDependencies

      Class<?>[] getDependencies()
      Get the dependencies of the bean.
      Returns:
      Dependencies of the bean
    • createBean

      Object createBean(Object... parameters) throws BeanInstantiationException
      Create a bean instance with the given parameters. This method is allowed to only create a bean instance one-time and reuse it for all following calls.
      Parameters:
      parameters - Parameters to be used for bean creation
      Returns:
      Bean instance
      Throws:
      BeanInstantiationException - If the bean cannot be instantiated