Class StringConstructorProducer
java.lang.Object
org.exoplatform.services.rest.impl.method.BaseTypeProducer
org.exoplatform.services.rest.impl.method.StringConstructorProducer
- All Implemented Interfaces:
TypeProducer
Create object which has constructor with single String parameter.
- Version:
- $Id: $
- Author:
- Andrey Parfonov
-
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectcreateValue(String value) Create object from given string.Methods inherited from class org.exoplatform.services.rest.impl.method.BaseTypeProducer
createValue
-
Method Details
-
createValue
Create object from given string. In all extends for this class this method must be specified to produce object of required type. String will be used as parameter for constructor of object or static valueOf method.- Specified by:
createValuein classBaseTypeProducer- Parameters:
value- string value- Returns:
- newly created object
- Throws:
Exception- if any error occurs
-