Class StringConstructorProducer

java.lang.Object
org.exoplatform.services.rest.impl.method.BaseTypeProducer
org.exoplatform.services.rest.impl.method.StringConstructorProducer
All Implemented Interfaces:
TypeProducer

public final class StringConstructorProducer extends BaseTypeProducer
Create object which has constructor with single String parameter.
Version:
$Id: $
Author:
Andrey Parfonov
  • Method Details

    • createValue

      protected Object createValue(String value) throws Exception
      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:
      createValue in class BaseTypeProducer
      Parameters:
      value - string value
      Returns:
      newly created object
      Throws:
      Exception - if any error occurs