source: trunk/src/main/java/omq/common/util/Serializers/ISerializer.java @ 72

Last change on this file since 72 was 72, checked in by stoda, 11 years ago

Events deleted instead of them there's a new example of how to use the observer pattern

File size: 543 bytes
Line 
1package omq.common.util.Serializers;
2
3import omq.common.message.Request;
4import omq.common.message.Response;
5import omq.exception.SerializerException;
6import omq.server.RemoteObject;
7
8/**
9 *
10 * @author Sergi Toda <sergi.toda@estudiants.urv.cat>
11 *
12 */
13public interface ISerializer {
14        public byte[] serialize(Object obj) throws SerializerException;
15
16        public Request deserializeRequest(byte[] bytes, RemoteObject obj) throws SerializerException;
17
18        public Response deserializeResponse(byte[] bytes, Class<?> type) throws SerializerException;
19}
Note: See TracBrowser for help on using the repository browser.