Class StringProducer
java.lang.Object
org.exoplatform.services.rest.impl.method.BaseTypeProducer
org.exoplatform.services.rest.impl.method.StringProducer
- All Implemented Interfaces:
TypeProducer
- Version:
- $Id: $
- Author:
- Andrey Parfonov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectcreateValue(String value) Don't need to do anything just return passed in method String as is.Methods inherited from class org.exoplatform.services.rest.impl.method.BaseTypeProducer
createValue
-
Constructor Details
-
StringProducer
public StringProducer()
-
-
Method Details
-
createValue
Don't need to do anything just return passed in method String as is. 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
-