1 22 package org.jboss.test.mx.mxbean.support; 23 24 import org.jboss.mx.mxbean.MXBeanSupport; 25 26 32 public class CompositeMXBeanSupport extends MXBeanSupport implements CompositeMXBeanSupportMXBean 33 { 34 private String simple; 35 private SimpleInterface composite; 36 37 public String getSimple() 38 { 39 return simple; 40 } 41 42 public CompositeMXBeanSupport(String simple, SimpleInterface composite) 43 { 44 this.simple = simple; 45 this.composite = composite; 46 } 47 48 public SimpleInterface getComposite() 49 { 50 return composite; 51 } 52 53 public void setComposite(SimpleInterface composite) 54 { 55 this.composite = composite; 56 } 57 58 public void setSimple(String simple) 59 { 60 this.simple = simple; 61 } 62 63 public SimpleInterface echoReverse(SimpleInterface composite) 64 { 65 SimpleObject result = new SimpleObject(); 66 StringBuilder builder = new StringBuilder (composite.getString()); 67 builder.reverse(); 68 result.setString(builder.toString()); 69 return result; 70 } 71 } 72 | Popular Tags |