1 17 package org.apache.servicemix.components.util.xstream; 18 19 import com.thoughtworks.xstream.XStream; 20 import com.thoughtworks.xstream.io.xml.TraxSource; 21 22 import org.apache.servicemix.JavaSource; 23 24 30 public class XStreamSource extends TraxSource implements JavaSource { 31 private Object object; 32 33 public XStreamSource() { 34 } 35 36 public XStreamSource(Object object) { 37 super(object); 38 this.object = object; 39 } 40 41 public XStreamSource(Object object, XStream xStream) { 42 super(object, xStream); 43 this.object = object; 44 } 45 46 public Object getObject() { 47 return this.object; 48 } 49 50 public void setObject(Object object) { 51 setSource(object); 52 } 53 54 public void setSource(Object object) { 55 super.setSource(object); 56 this.object = object; 57 } 58 } 59 | Popular Tags |