-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IPROTO-305 MessageMarshaller map support
* undeprecate MessageMarshaller * add compliance tests for map against protoc-generated marshallers
- Loading branch information
1 parent
f9f593f
commit 88f49fa
Showing
17 changed files
with
428 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,17 +5,15 @@ | |
import java.time.Instant; | ||
import java.util.Collection; | ||
import java.util.Date; | ||
import java.util.Map; | ||
|
||
/** | ||
* Contract to be implemented by manually written marshallers for Protobuf message (entity) types. The marshaller | ||
* implementation must be stateless and thread-safe. | ||
* | ||
* @author [email protected] | ||
* @since 1.0 | ||
* @deprecated since 4.3.1.Final. Will be removed in version 5. Please use annotation based marshallers instead. See | ||
* {@link org.infinispan.protostream.annotations.AutoProtoSchemaBuilder} | ||
*/ | ||
@Deprecated | ||
public interface MessageMarshaller<T> extends BaseMarshaller<T> { | ||
|
||
/** | ||
|
@@ -85,6 +83,8 @@ interface ProtoStreamReader { | |
<E, C extends Collection<? super E>> C readCollection(String fieldName, C collection, Class<E> elementClass) throws IOException; | ||
|
||
<E> E[] readArray(String fieldName, Class<? extends E> elementClass) throws IOException; | ||
|
||
<K, V, M extends Map<? super K, ? super V>> M readMap(String fieldName, M map, Class<K> keyClass, Class<V> valueClass) throws IOException; | ||
} | ||
|
||
/** | ||
|
@@ -141,15 +141,6 @@ interface ProtoStreamWriter { | |
|
||
<E> void writeObject(String fieldName, E value, Class<? extends E> clazz) throws IOException; | ||
|
||
/** | ||
* Writes an enum value. The third argument (the {@code class} was never used internally) so this variant is now | ||
* deprecated. | ||
* | ||
* @deprecated replaced by {@link ProtoStreamWriter#writeEnum(String fieldName, Enum value)} | ||
*/ | ||
@Deprecated | ||
<E extends Enum<E>> void writeEnum(String fieldName, E value, Class<E> clazz) throws IOException; | ||
|
||
/** | ||
* Writes an enum value. | ||
* | ||
|
@@ -161,5 +152,7 @@ interface ProtoStreamWriter { | |
<E> void writeCollection(String fieldName, Collection<? super E> collection, Class<E> elementClass) throws IOException; | ||
|
||
<E> void writeArray(String fieldName, E[] array, Class<? extends E> elementClass) throws IOException; | ||
|
||
<K, V> void writeMap(String fieldName, Map<? super K, ? super V> map, Class<K> keyClass, Class<V> valueClass) throws IOException; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.