Next how to Implement
First step: First, the service class, call method to convert to digital, easy to transfer
The second step: Extract meta-information, extraction and three ways, three kinds have advantages, the best way is the first
1. Processing when compiling Java
2. Program start-up processing, preprocessing
3. Call processing, lazy processing
Step Three: Encoding interpretation
Fourth Step: Request method
Fifth Step: Distributed support
The first step:
@Target (Elementtype.type) @Retention (retentionpolicy.runtime) public @Interface Qmodel { short value ();}
@Target (Elementtype.method) @Retention (retentionpolicy.runtime) public @Interface qcommond { byte value ();}
@Target ({elementtype.parameter}) @Retention (retentionpolicy.runtime) public @Interface qrpcparam { booleandefaultTrue ;}
1.QModel is converted into a module number is the public service class, before the first to confirm the value range of re-determined type. Short range-32768 to 327,671 medium and large projects that is thirty or forty modules, enough for the short range
2.QCommond is the service class call method number, byte type
3.QRpcParam is bound on the parameter, because Java reflection is not get interface parameter method name, can only get to the parameter name on the implementation class, JAVA8 is not supported, required parameter must have
[Weave message Frame] [Java Core Technology] Dynamic Agent application 2