1 7 8 package org.jboss.cache.pojo.test; 9 10 17 @org.jboss.cache.pojo.annotation.Replicable 18 public class Resource 19 { 20 String connection = null; 21 String name = null; 22 byte[] bin = null; 25 26 public String getName() 27 { 28 return name; 29 } 30 31 public void setName(String name) 32 { 33 this.name = name; 34 } 35 36 public String getConnection() 37 { 38 return connection; 39 } 40 41 public void setConnection(String connection) 42 { 43 this.connection = connection; 44 } 45 46 public byte[] getByte() 47 { 48 return bin; 49 } 50 51 public void setByte(byte[] b) 52 { 53 bin = b; 54 } 55 56 public String toString() 57 { 58 return "name=" + getName() + ", type=" + getConnection() + " bytes= " +bin.toString(); 59 } 60 } 61 | Popular Tags |