public class ObjectFactory extends Object
| Constructor and Description |
|---|
ObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
create(Class<T> objClass,
Object... constructorArgs)
Create an instance of the specified class, using the specified
constructor arguments.
|
public <T> T create(Class<T> objClass, Object... constructorArgs)
T - The type of the classobjClass - The class from which to create instancesconstructorArgs - The constructor argumentsCopyright © 2009–2018. All rights reserved.