public interface ObjectFactory
| Modifier and Type | Method and Description |
|---|---|
<T> T |
create(Class<T> type,
Object... parameters)
Creates a new instance of the specified type.
|
<T> T |
create(String className,
Class<T> superType,
Object... parameters)
Creates a new instance of the specified class name.
|
<T> T create(Class<T> type, Object... parameters)
type - the object typeparameters - additional constructor parameters<T> T create(String className, Class<T> superType, Object... parameters)
className - the class namesuperType - the super typeparameters - additional constructor parametersClassCastException - if className does not implement or extend superTypeIzPackClassNotFoundException - if the class cannot be foundCopyright © 2001–2025. All rights reserved.