T - The typepublic interface ParametrizedBeanFactory<T> extends BeanFactory<T>
BeanFactory that requires additional (possibly user supplied) parameters in order construct a bean.| Modifier and Type | Method and Description |
|---|---|
default T |
build(BeanResolutionContext resolutionContext,
BeanContext context,
BeanDefinition<T> definition)
Builds a bean instance.
|
T |
build(BeanResolutionContext resolutionContext,
BeanContext context,
BeanDefinition<T> definition,
Map<String,Object> requiredArgumentValues)
Variation of the
BeanFactory.build(BeanContext, BeanDefinition) method that allows passing the values necessary for
successful bean construction. |
Argument<?>[] |
getRequiredArguments() |
buildArgument<?>[] getRequiredArguments()
T build(BeanResolutionContext resolutionContext, BeanContext context, BeanDefinition<T> definition, Map<String,Object> requiredArgumentValues) throws BeanInstantiationException
BeanFactory.build(BeanContext, BeanDefinition) method that allows passing the values necessary for
successful bean construction.resolutionContext - The BeanResolutionContextcontext - The BeanContextdefinition - The BeanDefinitionrequiredArgumentValues - The required arguments values. The keys should match the names of the arguments
returned by getRequiredArguments()BeanInstantiationException - If the bean cannot be instantiated for the arguments supplieddefault T build(BeanResolutionContext resolutionContext, BeanContext context, BeanDefinition<T> definition) throws BeanInstantiationException
BeanFactorybuild in interface BeanFactory<T>resolutionContext - The bean resolution contextcontext - The contextdefinition - The definitionBeanInstantiationException - if the instance could not be instantiated