All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rpcfy.annotations.RPCfy Maven / Gradle / Ivy

Go to download

RPCfy upgrades your normal java interface to be capable of doing RPC (Remote Procedure Call).

There is a newer version: 1.0.23
Show newest version
package rpcfy.annotations;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.TYPE;
import static java.lang.annotation.RetentionPolicy.CLASS;

/**
 * Marks an interface to be RPCfy'ed
 * 

* An RPCfy'ed interface generates Proxy and Stubs which enables the interface to be * used for RPC *

* The generated XXXX__JsonRpcProxy class implements this given interface and maps the * calls to it to the a JSONRPC messages. These messages can then be transported to the * actual implementation using the provided {@link rpcfy.JsonRPCMessageHandler}. *

* Once the JSONRPC message reaches the server side, it is passed on to the generated instance * of XXXX_JsonRpcStub class, which de-serializes the given JSONRPC message and calls the remote * method and passes the result back. * * @see rpcfy.JsonRPCMessageHandler */ @Retention(CLASS) @Target(TYPE) public @interface RPCfy { }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy