Interface TypeProducer
- All Known Implementing Classes:
BaseCollectionProducer,BaseTypeProducer,CollectionStringConstructorProducer,CollectionStringProducer,CollectionStringValueOfProducer,PrimitiveTypeProducer,StringConstructorProducer,StringProducer,StringValueOfProducer
public interface TypeProducer
Can create object by using String value. For each type of object should be
created new instance of TypeProducer.
- Version:
- $Id: $
- Author:
- Andrey Parfonov
-
Method Summary
-
Method Details
-
createValue
Object createValue(String param, javax.ws.rs.core.MultivaluedMap<String, String> values, String defaultValue) throws Exception- Parameters:
param- parameter name, parameter name should be getting from parameter annotationvalues- all value which can be used for construct object, it can be header parameters, path parameters, query parameters, etcdefaultValue- default value which can be used if in value can't be found required value with name param- Returns:
- newly created object
- Throws:
Exception- if any errors occurs
-