This commit is contained in:
redkale
2023-12-18 23:53:30 +08:00
parent fc228964fd
commit d971fe94ee
33 changed files with 60 additions and 40 deletions

View File

@@ -24,7 +24,7 @@ module org.redkale {
exports org.redkale.convert.bson; exports org.redkale.convert.bson;
exports org.redkale.convert.ext; exports org.redkale.convert.ext;
exports org.redkale.convert.json; exports org.redkale.convert.json;
exports org.redkale.convert.protobuf; exports org.redkale.convert.proto;
exports org.redkale.inject; exports org.redkale.inject;
exports org.redkale.lock; exports org.redkale.lock;
exports org.redkale.mq; exports org.redkale.mq;

View File

@@ -27,7 +27,7 @@ import org.redkale.cluster.*;
import org.redkale.convert.Convert; import org.redkale.convert.Convert;
import org.redkale.convert.bson.BsonFactory; import org.redkale.convert.bson.BsonFactory;
import org.redkale.convert.json.*; import org.redkale.convert.json.*;
import org.redkale.convert.protobuf.ProtobufFactory; import org.redkale.convert.proto.ProtobufFactory;
import org.redkale.inject.ResourceEvent; import org.redkale.inject.ResourceEvent;
import org.redkale.inject.ResourceFactory; import org.redkale.inject.ResourceFactory;
import org.redkale.inject.ResourceTypeLoader; import org.redkale.inject.ResourceTypeLoader;

View File

@@ -21,7 +21,7 @@ import org.redkale.annotation.ConstructorParameters;
import org.redkale.convert.bson.BsonConvert; import org.redkale.convert.bson.BsonConvert;
import org.redkale.convert.ext.*; import org.redkale.convert.ext.*;
import org.redkale.convert.json.JsonConvert; import org.redkale.convert.json.JsonConvert;
import org.redkale.convert.protobuf.ProtobufConvert; import org.redkale.convert.proto.ProtobufConvert;
import org.redkale.util.*; import org.redkale.util.*;
/** /**

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.util.concurrent.atomic.*; import java.util.concurrent.atomic.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.util.concurrent.atomic.*; import java.util.concurrent.atomic.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;
import java.util.function.Supplier; import java.util.function.Supplier;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.util.concurrent.atomic.*; import java.util.concurrent.atomic.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.util.concurrent.atomic.*; import java.util.concurrent.atomic.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.io.*; import java.io.*;
import java.lang.reflect.*; import java.lang.reflect.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.*; import java.util.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.io.Serializable; import java.io.Serializable;
import java.lang.reflect.*; import java.lang.reflect.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import org.redkale.convert.*; import org.redkale.convert.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import org.redkale.convert.*; import org.redkale.convert.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import org.redkale.convert.*; import org.redkale.convert.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import org.redkale.convert.*; import org.redkale.convert.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.util.concurrent.atomic.*; import java.util.concurrent.atomic.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.util.concurrent.atomic.*; import java.util.concurrent.atomic.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.io.*; import java.io.*;
import org.redkale.convert.*; import org.redkale.convert.*;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.io.*; import java.io.*;
import org.redkale.convert.ConvertException; import org.redkale.convert.ConvertException;

View File

@@ -3,7 +3,7 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.convert.protobuf; package org.redkale.convert.proto;
import java.lang.reflect.Type; import java.lang.reflect.Type;
import java.nio.ByteBuffer; import java.nio.ByteBuffer;

View File

@@ -54,7 +54,7 @@ public class RedkaleClassLoader extends URLClassLoader {
"org.redkale.convert.bson", "org.redkale.convert.bson",
"org.redkale.convert.ext", "org.redkale.convert.ext",
"org.redkale.convert.json", "org.redkale.convert.json",
"org.redkale.convert.protobuf", "org.redkale.convert.proto",
"org.redkale.inject", "org.redkale.inject",
"org.redkale.lock", "org.redkale.lock",
"org.redkale.mq", "org.redkale.mq",

View File

@@ -0,0 +1,20 @@
/*
*
*/
package org.redkale.util;
/**
* 详情见: https://redkale.org
*
* @see org.redkale.inject.ResourceEvent
*
* @param <T> 泛型
*
* @author zhangjx
* @since 2.7.0
* @deprecated replaced by org.redkale.inject.ResourceEvent
*/
@Deprecated(since = "2.8.0")
public interface ResourceEvent<T> extends org.redkale.inject.ResourceEvent<T> {
}

View File

@@ -3,11 +3,11 @@
* To change this template file, choose Tools | Templates * To change this template file, choose Tools | Templates
* and open the template in the editor. * and open the template in the editor.
*/ */
package org.redkale.test.convert.protobuf; package org.redkale.test.convert.proto;
import java.util.*; import java.util.*;
import org.redkale.util.Utility; import org.redkale.util.Utility;
import org.redkale.convert.protobuf.ProtobufConvert; import org.redkale.convert.proto.ProtobufConvert;
/** /**
* *

View File

@@ -1,6 +1,6 @@
/* /*
*/ */
package org.redkale.test.convert.protobuf; package org.redkale.test.convert.proto;
import java.lang.annotation.*; import java.lang.annotation.*;
import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.ElementType.TYPE;
@@ -10,10 +10,10 @@ import java.util.function.*;
import org.junit.jupiter.api.*; import org.junit.jupiter.api.*;
import org.redkale.convert.*; import org.redkale.convert.*;
import org.redkale.convert.json.JsonConvert; import org.redkale.convert.json.JsonConvert;
import org.redkale.convert.protobuf.ProtobufConvert; import org.redkale.convert.proto.ProtobufConvert;
import org.redkale.convert.protobuf.ProtobufObjectDecoder; import org.redkale.convert.proto.ProtobufObjectDecoder;
import org.redkale.convert.protobuf.ProtobufObjectEncoder; import org.redkale.convert.proto.ProtobufObjectEncoder;
import org.redkale.convert.protobuf.ProtobufReader; import org.redkale.convert.proto.ProtobufReader;
import org.redkale.util.*; import org.redkale.util.*;
/** /**

View File

@@ -1,6 +1,6 @@
/* /*
*/ */
package org.redkale.test.convert.protobuf; package org.redkale.test.convert.proto;
import java.lang.annotation.*; import java.lang.annotation.*;
import static java.lang.annotation.ElementType.TYPE; import static java.lang.annotation.ElementType.TYPE;
@@ -10,11 +10,11 @@ import java.util.function.*;
import org.junit.jupiter.api.*; import org.junit.jupiter.api.*;
import org.redkale.convert.*; import org.redkale.convert.*;
import org.redkale.convert.json.JsonConvert; import org.redkale.convert.json.JsonConvert;
import org.redkale.convert.protobuf.ProtobufConvert; import org.redkale.convert.proto.ProtobufConvert;
import org.redkale.convert.protobuf.ProtobufFactory; import org.redkale.convert.proto.ProtobufFactory;
import org.redkale.convert.protobuf.ProtobufObjectDecoder; import org.redkale.convert.proto.ProtobufObjectDecoder;
import org.redkale.convert.protobuf.ProtobufObjectEncoder; import org.redkale.convert.proto.ProtobufObjectEncoder;
import org.redkale.convert.protobuf.ProtobufReader; import org.redkale.convert.proto.ProtobufReader;
import org.redkale.util.*; import org.redkale.util.*;
/** /**

View File

@@ -1,4 +1,4 @@
package org.redkale.test.convert.protobuf; package org.redkale.test.convert.proto;
//// Generated by the protocol buffer compiler. DO NOT EDIT! //// Generated by the protocol buffer compiler. DO NOT EDIT!
//// source: src/test/java/org/redkalex/test/protobuf/PSimpleBean.proto //// source: src/test/java/org/redkalex/test/protobuf/PSimpleBean.proto

View File

@@ -1,4 +1,4 @@
package org.redkale.test.convert.protobuf; package org.redkale.test.convert.proto;
//// Generated by the protocol buffer compiler. DO NOT EDIT! //// Generated by the protocol buffer compiler. DO NOT EDIT!
//// source: src/test/java/org/redkalex/test/protobuf/PTestBean.proto //// source: src/test/java/org/redkalex/test/protobuf/PTestBean.proto

View File

@@ -1,4 +1,4 @@
package org.redkale.test.convert.protobuf; package org.redkale.test.convert.proto;
///* ///*
// * To change this license header, choose License Headers in Project Properties. // * To change this license header, choose License Headers in Project Properties.

View File

@@ -1,4 +1,4 @@
package org.redkale.test.convert.protobuf; package org.redkale.test.convert.proto;
///* ///*
// * To change this license header, choose License Headers in Project Properties. // * To change this license header, choose License Headers in Project Properties.