public class MultipleConstructorsConstructionStrategy extends Object implements ConstructionStrategy
Constructor
Constructor and Description |
---|
MultipleConstructorsConstructionStrategy(ParameterArrayFactory parameterArrayMaker) |
Modifier and Type | Method and Description |
---|---|
Object |
instantiate(Class<?> toLoad,
ApplicationContext applicationContext,
Constructor<?>... constructors) |
public MultipleConstructorsConstructionStrategy(ParameterArrayFactory parameterArrayMaker)
parameterArrayMaker
- the ParameterArrayFactory that should be used to create the constructors arguments.public Object instantiate(Class<?> toLoad, ApplicationContext applicationContext, Constructor<?>... constructors)
instantiate
in interface ConstructionStrategy
toLoad
- the Class to instantiateapplicationContext
- the ApplicationContext to useconstructors
- the constructors of the ClassCopyright © 2012 redlab.be. All Rights Reserved.