B - the paraemter type of the base typepublic abstract class ObjectFactory<B> extends Object
| Constructor and Description |
|---|
ObjectFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract <S extends B> |
create(Class<S> type,
Map<FieldModel<? super S,?>,?> state)
Instantiate an object based on the provided type.
|
public abstract <S extends B> S create(Class<S> type, Map<FieldModel<? super S,?>,?> state) throws CreateException
S - the parameter type of the sub type of the base typetype - the typestate - the stateCreateException - anything wrong that happened during instance creationCopyright © 2017 JBoss by Red Hat. All Rights Reserved.