rpcfy.annotations.RPCfy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rpcfy-annotations Show documentation
Show all versions of rpcfy-annotations Show documentation
RPCfy upgrades your normal java interface to be capable of doing RPC (Remote Procedure Call).
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