Mercurial > hg > Members > tatsuki > Alice
changeset 125:6773146b353c working
add singleton MessagePack
author | sugi |
---|---|
date | Tue, 31 Jul 2012 20:21:23 +0900 |
parents | cc4973a869c5 |
children | 669dba7cbb69 |
files | src/alice/codesegment/SingletonMessage.java |
diffstat | 1 files changed, 13 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/alice/codesegment/SingletonMessage.java Tue Jul 31 20:21:23 2012 +0900 @@ -0,0 +1,13 @@ +package alice.codesegment; + +import org.msgpack.MessagePack; + +public class SingletonMessage { + + private static final MessagePack instance = new MessagePack(); + + public static MessagePack getInstance(){ + return instance; + } + +}