public class SingleConstructorConstructionStrategy extends Object implements ConstructionStrategy
Constructor and Description |
---|
SingleConstructorConstructionStrategy(ParameterArrayFactory factory) |
Modifier and Type | Method and Description |
---|---|
Object |
instantiate(Class<?> toLoad,
ApplicationContext applicationContext,
Constructor<?>... constructors) |
public SingleConstructorConstructionStrategy(ParameterArrayFactory factory)
factory
- 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.