1 24 25 package utobcast.basic; 26 27 import org.objectweb.dream.message.AbstractChunk; 28 import org.objectweb.dream.message.Chunk; 29 import org.objectweb.dream.message.ChunkType; 30 31 34 public class TestChunkImpl extends AbstractChunk implements TestChunk 35 { 36 private String message; 37 38 42 45 public String getMessage() 46 { 47 return message; 48 } 49 50 53 public void setMessage(String message) 54 { 55 this.message = message; 56 } 57 58 62 65 public ChunkType getType() 66 { 67 return TYPE; 68 } 69 70 73 public void recycle() 74 { 75 message = null; 76 } 77 78 81 public void transfertState(Chunk newInstance) 82 { 83 TestChunk chunk = (TestChunk) newInstance; 84 chunk.setMessage(getMessage()); 85 } 86 87 } | Popular Tags |