Commit f8f41928 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Changed my mind about some serializer issues. Use annotations to enable

custom serializers.
parent 5e5e3600
......@@ -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>
......
......@@ -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
......
......@@ -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);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment