
pl.chilldev.commons.jsonrpc.client.JavaModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-jsonrpc Show documentation
Show all versions of commons-jsonrpc Show documentation
Bridge library that helps building JSON-RPC daemons using Apache MINA and JSON-RPC 2.0 Base libraries.
The newest version!
/**
* This file is part of the ChillDev-Commons.
*
* @license http://mit-license.org/ The MIT license
* @copyright 2016 © by Rafał Wrzeszcz - Wrzasq.pl.
*/
package pl.chilldev.commons.jsonrpc.client;
import java.util.UUID;
import pl.chilldev.commons.jsonrpc.client.introspector.Introspector;
/**
* Core Java types handling.
*/
public class JavaModule implements ClientModule
{
/**
* {@inheritDoc}
*/
@Override
public void initializeIntrospector(Introspector introspector)
{
// response types handlers
// UUID handling
introspector.registerResultHandler(
UUID.class,
(Object response) -> UUID.fromString(response.toString())
);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy