Class DefaultObjectFactory
java.lang.Object
org.exoplatform.commons.serialization.api.factory.ObjectFactory<Object>
org.exoplatform.commons.serialization.api.factory.DefaultObjectFactory
- Version:
- $Revision$
- Author:
- Julien Viet
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<S> Screate(Class<S> type, Map<FieldModel<? super S, ?>, ?> state) Instantiate an object based on the provided type.
-
Constructor Details
-
DefaultObjectFactory
public DefaultObjectFactory()
-
-
Method Details
-
create
Description copied from class:ObjectFactoryInstantiate an object based on the provided type. The implementor should take care of configuring the state of the returned objet with the provided state map argument.- Specified by:
createin classObjectFactory<Object>- Type Parameters:
S- the parameter type of the sub type of the base type- Parameters:
type- the typestate- the state- Returns:
- the S instance
- Throws:
CreateException- anything wrong that happened during instance creation
-