1 23 24 29 30 package com.sun.enterprise.admin.server.core.mbean.test; 31 32 import com.sun.enterprise.admin.server.core.mbean.config.AdminBase; 34 import com.sun.enterprise.admin.util.*; 35 36 41 public class ManagedTest extends AdminBase 42 { 43 public String Color = null; 44 public String Smell = null; 45 public String Taste = null; 46 47 50 51 public ManagedTest () 52 { 53 Color = "BLUE"; 54 Smell = "PLEASANT"; 55 Taste = "SWEET"; 56 } 57 58 public ManagedTest(String msg) 59 { 60 } 61 62 public String getColor() 63 { 64 return Color; 65 } 66 public void setColor(String c) 67 { 68 Color = c; 69 } 70 public String getSmell() 71 { 72 return Smell; 73 } 74 public void setSmell(String s) 75 { 76 Smell = s; 77 } 78 public String getTaste() 79 { 80 return Taste; 81 } 82 public void setTaste(String t) 83 { 84 Taste = t; 85 } 86 public void voidVoid() 87 { 88 Logger.log("Method: takes void returns void"); 89 } 90 public String stringVoid() 91 { 92 Logger.log("Method: takes void returns string"); 93 return ("stringvoid"); 94 } 95 public void voidInt(int i) 96 { 97 Logger.log("Method: takes int = " + i + " and returns void"); 98 } 99 107 protected Class getImplementingClass() { 108 return ( this.getClass() ); 109 } 110 111 114 protected Object getImplementingMBean() { 115 return ( this ); 116 } 117 118 } 119 | Popular Tags |