Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
API
Commits
f8f41928
Commit
f8f41928
authored
Nov 04, 2014
by
Björn Richerzhagen
Browse files
Changed my mind about some serializer issues. Use annotations to enable
custom serializers.
parent
5e5e3600
Changes
3
Hide whitespace changes
Inline
Side-by-side
.classpath
View file @
f8f41928
...
...
@@ -6,7 +6,7 @@
<attribute
name=
"maven.pomderived"
value=
"true"
/>
</attributes>
</classpathentry>
<classpathentry
kind=
"con"
path=
"org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"
>
<classpathentry
exported=
"true"
kind=
"con"
path=
"org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"
>
<attributes>
<attribute
name=
"maven.pomderived"
value=
"true"
/>
</attributes>
...
...
src/de/tudarmstadt/maki/simonstrator/api/component/overlay/Serializer.java
View file @
f8f41928
...
...
@@ -34,9 +34,16 @@ import de.tudarmstadt.maki.simonstrator.api.Message;
* @author Bjoern Richerzhagen
*
*/
@Deprecated
public
interface
Serializer
{
/**
* Has to return the types that are sent via the network. Custom serializers
* are provided with the @Se
*
* @return
*/
public
Class
<?>[]
getSerializableTypes
();
/**
* Serialize the given message using the provided output stream. For
* convenience, you might of course fill the provided primitive OutputStream
...
...
src/de/tudarmstadt/maki/simonstrator/api/component/overlay/SerializerComponent.java
View file @
f8f41928
...
...
@@ -38,17 +38,6 @@ public interface SerializerComponent extends GlobalComponent {
* @param serializer
* @param port
*/
@Deprecated
public
void
addSerializer
(
Serializer
serializer
,
int
port
);
/**
* New Serialization API. Register the respective Type and (optionally)
* provide a serializer implementation.
*
* @param type
* @param serializer
*/
public
<
T
>
void
addSerializableType
(
Class
<
T
>
type
,
com
.
esotericsoftware
.
kryo
.
Serializer
<
T
>
serializer
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment