Last change
on this file since 73 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
|
Rev | Line | |
---|
[44] | 1 | package omq.common.util.Serializers; |
---|
| 2 | |
---|
| 3 | import omq.common.message.Request; |
---|
| 4 | import omq.common.message.Response; |
---|
| 5 | import omq.exception.SerializerException; |
---|
| 6 | import omq.server.RemoteObject; |
---|
| 7 | |
---|
| 8 | /** |
---|
| 9 | * |
---|
| 10 | * @author Sergi Toda <sergi.toda@estudiants.urv.cat> |
---|
| 11 | * |
---|
| 12 | */ |
---|
| 13 | public 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.