Class StringProducer

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

public final class StringProducer extends BaseTypeProducer
Version:
$Id: $
Author:
Andrey Parfonov
  • Constructor Details

    • StringProducer

      public StringProducer()
  • Method Details

    • createValue

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