1 22 package org.jboss.test.jmx.compliance.server.support; 23 24 28 public class InvocationHandlerTest 29 implements InvocationHandlerTestMBean 30 { 31 String attribute = "Attribute"; 32 33 public boolean invokeNoArgsNoReturnInvoked = false; 34 public boolean invokeNoReturnInvoked = false; 35 36 public boolean primitive; 37 public Boolean type; 38 39 public String getAttribute() 40 { 41 return attribute; 42 } 43 44 public void setAttribute(String attribute) 45 { 46 this.attribute = attribute; 47 } 48 49 public boolean isIsPrimitive() 50 { 51 return primitive; 52 } 53 54 public void setIsPrimitive(boolean bool) 55 { 56 this.primitive = bool; 57 } 58 59 public Boolean getType() 60 { 61 return type; 62 } 63 64 public void setType(Boolean bool) 65 { 66 this.type = bool; 67 } 68 69 public void invokeNoArgsNoReturn() 70 { 71 invokeNoArgsNoReturnInvoked = true; 72 } 73 74 public String invokeNoArgs() 75 { 76 return("invokeNoArgs"); 77 } 78 79 public void invokeNoReturn(String parameter) 80 { 81 invokeNoReturnInvoked = true; 82 } 83 84 public String invoke(String parameter) 85 { 86 return parameter; 87 } 88 89 public Object invokeMixedParameters(String parameter1, int parameter2, Object parameter3) 90 { 91 return parameter3; 92 } 93 } | Popular Tags |