protobuf更换包名
This commit is contained in:
@@ -85,7 +85,7 @@ public class TestMessageManager extends AbstractService {
|
||||
manager.createTopic("topic_1", "topic_2").join();
|
||||
}
|
||||
|
||||
// 创建topic
|
||||
// 删除topic
|
||||
public void deleteTopic() {
|
||||
manager.deleteTopic("topic_1", "topic_2").join();
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ module org.redkale {
|
||||
exports org.redkale.convert.bson;
|
||||
exports org.redkale.convert.ext;
|
||||
exports org.redkale.convert.json;
|
||||
exports org.redkale.convert.proto;
|
||||
exports org.redkale.convert.pb;
|
||||
exports org.redkale.convert.spi;
|
||||
exports org.redkale.inject;
|
||||
exports org.redkale.locked;
|
||||
|
||||
@@ -33,7 +33,7 @@ import org.redkale.cluster.spi.HttpLocalRpcClient;
|
||||
import org.redkale.convert.Convert;
|
||||
import org.redkale.convert.bson.BsonFactory;
|
||||
import org.redkale.convert.json.*;
|
||||
import org.redkale.convert.proto.ProtobufFactory;
|
||||
import org.redkale.convert.pb.ProtobufFactory;
|
||||
import org.redkale.inject.ResourceAnnotationLoader;
|
||||
import org.redkale.inject.ResourceEvent;
|
||||
import org.redkale.inject.ResourceFactory;
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.redkale.annotation.ConstructorParameters;
|
||||
import org.redkale.convert.bson.BsonConvert;
|
||||
import org.redkale.convert.ext.*;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
import org.redkale.convert.proto.ProtobufConvert;
|
||||
import org.redkale.convert.pb.ProtobufConvert;
|
||||
import org.redkale.convert.spi.ConvertProvider;
|
||||
import org.redkale.util.*;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.concurrent.atomic.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.concurrent.atomic.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
import java.util.function.Supplier;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.concurrent.atomic.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.concurrent.atomic.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.io.*;
|
||||
import java.lang.reflect.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Method;
|
||||
import java.util.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.lang.reflect.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import org.redkale.convert.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import org.redkale.convert.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import org.redkale.convert.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import org.redkale.convert.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.concurrent.atomic.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.concurrent.atomic.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.io.*;
|
||||
import org.redkale.convert.*;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.io.*;
|
||||
import org.redkale.convert.ConvertException;
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.convert.proto;
|
||||
package org.redkale.convert.pb;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.nio.ByteBuffer;
|
||||
@@ -45,7 +45,7 @@ public class RedkaleClassLoader extends URLClassLoader {
|
||||
"org.redkale.convert.bson",
|
||||
"org.redkale.convert.ext",
|
||||
"org.redkale.convert.json",
|
||||
"org.redkale.convert.proto",
|
||||
"org.redkale.convert.pb",
|
||||
"org.redkale.convert.spi",
|
||||
"org.redkale.inject",
|
||||
"org.redkale.locked",
|
||||
|
||||
@@ -3,10 +3,10 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.test.convert.proto;
|
||||
package org.redkale.test.convert.pb;
|
||||
|
||||
import java.util.*;
|
||||
import org.redkale.convert.proto.ProtobufConvert;
|
||||
import org.redkale.convert.pb.ProtobufConvert;
|
||||
import org.redkale.util.Utility;
|
||||
|
||||
/** @author zhangjx */
|
||||
@@ -3,7 +3,7 @@
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
package org.redkale.test.convert.proto;
|
||||
package org.redkale.test.convert.pb;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.TYPE;
|
||||
@@ -13,10 +13,10 @@ import java.util.function.*;
|
||||
import org.junit.jupiter.api.*;
|
||||
import org.redkale.convert.*;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
import org.redkale.convert.proto.ProtobufConvert;
|
||||
import org.redkale.convert.proto.ProtobufObjectDecoder;
|
||||
import org.redkale.convert.proto.ProtobufObjectEncoder;
|
||||
import org.redkale.convert.proto.ProtobufReader;
|
||||
import org.redkale.convert.pb.ProtobufConvert;
|
||||
import org.redkale.convert.pb.ProtobufObjectDecoder;
|
||||
import org.redkale.convert.pb.ProtobufObjectEncoder;
|
||||
import org.redkale.convert.pb.ProtobufReader;
|
||||
import org.redkale.util.*;
|
||||
|
||||
/** @author zhangjx */
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
*/
|
||||
package org.redkale.test.convert.proto;
|
||||
package org.redkale.test.convert.pb;
|
||||
|
||||
import java.lang.annotation.*;
|
||||
import static java.lang.annotation.ElementType.TYPE;
|
||||
@@ -10,11 +10,11 @@ import java.util.function.*;
|
||||
import org.junit.jupiter.api.*;
|
||||
import org.redkale.convert.*;
|
||||
import org.redkale.convert.json.JsonConvert;
|
||||
import org.redkale.convert.proto.ProtobufConvert;
|
||||
import org.redkale.convert.proto.ProtobufFactory;
|
||||
import org.redkale.convert.proto.ProtobufObjectDecoder;
|
||||
import org.redkale.convert.proto.ProtobufObjectEncoder;
|
||||
import org.redkale.convert.proto.ProtobufReader;
|
||||
import org.redkale.convert.pb.ProtobufConvert;
|
||||
import org.redkale.convert.pb.ProtobufFactory;
|
||||
import org.redkale.convert.pb.ProtobufObjectDecoder;
|
||||
import org.redkale.convert.pb.ProtobufObjectEncoder;
|
||||
import org.redkale.convert.pb.ProtobufReader;
|
||||
import org.redkale.util.*;
|
||||
|
||||
/** @author zhangjx */
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.redkale.test.convert.proto;
|
||||
package org.redkale.test.convert.pb;
|
||||
|
||||
//// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
//// source: src/test/java/org/redkalex/test/protobuf/PSimpleBean.proto
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.redkale.test.convert.proto;
|
||||
package org.redkale.test.convert.pb;
|
||||
|
||||
//// Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
//// source: src/test/java/org/redkalex/test/protobuf/PTestBean.proto
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.redkale.test.convert.proto;
|
||||
package org.redkale.test.convert.pb;
|
||||
|
||||
/// *
|
||||
// * To change this license header, choose License Headers in Project Properties.
|
||||
@@ -11,7 +11,7 @@ package org.redkale.test.convert.proto;
|
||||
// import org.redkale.convert.ConvertColumn;
|
||||
// import org.redkale.convert.json.JsonConvert;
|
||||
// import org.redkale.util.Utility;
|
||||
// import org.redkalex.convert.protobuf.ProtobufConvert;
|
||||
// import org.redkale.convert.pb.ProtobufConvert;
|
||||
//
|
||||
/// **
|
||||
// *
|
||||
@@ -1,4 +1,4 @@
|
||||
package org.redkale.test.convert.proto;
|
||||
package org.redkale.test.convert.pb;
|
||||
|
||||
/// *
|
||||
// * To change this license header, choose License Headers in Project Properties.
|
||||
@@ -7,8 +7,8 @@ package org.redkale.test.convert.proto;
|
||||
// */
|
||||
// package org.redkalex.test.protobuf;
|
||||
//
|
||||
// import org.redkalex.convert.protobuf.ProtobufReader;
|
||||
// import org.redkalex.convert.protobuf.ProtobufConvert;
|
||||
// import org.redkale.convert.pb.ProtobufReader;
|
||||
// import org.redkale.convert.pb.ProtobufConvert;
|
||||
// import com.google.protobuf.*;
|
||||
// import java.util.*;
|
||||
// import org.redkale.convert.ConvertColumn;
|
||||
@@ -22,12 +22,12 @@ public class TestMessageManager extends AbstractService {
|
||||
public void initTopic() {
|
||||
manager.createTopic("topic_1", "topic_2").join();
|
||||
}
|
||||
|
||||
// 创建topic
|
||||
|
||||
// 删除topic
|
||||
public void deleteTopic() {
|
||||
manager.deleteTopic("topic_1", "topic_2").join();
|
||||
}
|
||||
|
||||
|
||||
// 查询topic
|
||||
public void printTopic() {
|
||||
List<String> topics = manager.queryTopic().join();
|
||||
|
||||
Reference in New Issue
Block a user