Package com.hpe.caf.decoder
Class JavascriptDecoder
- java.lang.Object
-
- com.hpe.caf.decoder.JavascriptDecoder
-
- All Implemented Interfaces:
Decoder
@FileExtensions("js") public class JavascriptDecoder extends Object implements Decoder
Decoder implementation that supports building objects from JavaScript. Supports a function 'getenv' which takes the name of an environment variable and will return its value.
-
-
Constructor Summary
Constructors Constructor Description JavascriptDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tdeserialise(InputStream stream, Class<T> clazz)
-
-
-
Method Detail
-
deserialise
public <T> T deserialise(InputStream stream, Class<T> clazz) throws CodecException
- Specified by:
deserialisein interfaceDecoder- Throws:
CodecException
-
-