Package de.simonkerstan.ee.core.di.graph
Class ObjectBeanCreationInformation
java.lang.Object
de.simonkerstan.ee.core.di.graph.ObjectBeanCreationInformation
- All Implemented Interfaces:
BeanCreationInformation
Bean creation information for beans that are not instantiated but provided directly.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateBean(Object... parameters) Create a bean instance with the given parameters.Class<?>[]Get the dependencies of the bean.
-
Constructor Details
-
ObjectBeanCreationInformation
public ObjectBeanCreationInformation()
-
-
Method Details
-
getDependencies
Description copied from interface:BeanCreationInformationGet the dependencies of the bean.- Specified by:
getDependenciesin interfaceBeanCreationInformation- Returns:
- Dependencies of the bean
-
createBean
Description copied from interface:BeanCreationInformationCreate 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.- Specified by:
createBeanin interfaceBeanCreationInformation- Parameters:
parameters- Parameters to be used for bean creation- Returns:
- Bean instance
- Throws:
BeanInstantiationException- If the bean cannot be instantiated
-