1 5 package org.exoplatform.services.wsrp.consumer.impl; 6 7 import org.exoplatform.commons.utils.IOUtil; 8 import org.exoplatform.services.wsrp.consumer.Producer; 9 18 public class ProducerData { 19 private String id_ ; 20 transient private Producer producer_ ; 21 22 public ProducerData() { 23 } 24 25 28 public String getId() { return id_ ; } 29 public void setId(String id) { id_ = id ; } 30 31 34 public byte[] getData() throws Exception { 35 return IOUtil.serialize(producer_) ; 36 } 37 38 public void setData(byte[] data) throws Exception { 39 producer_ = (Producer) IOUtil.deserialize(data) ; 40 } 41 42 public Producer getProducer() { return producer_ ; } 43 public void setProducer(Producer p) { producer_ = p ; } 44 45 } 46 | Popular Tags |