1 8 9 package test.mx4j.tools.i18n; 10 11 import java.util.Locale ; 12 import javax.management.NotCompliantMBeanException ; 13 14 import mx4j.tools.i18n.I18NStandardMBean; 15 16 17 19 public class I18NStandardMBeanSupport 20 { 21 24 public static class SubclassNotCompliant extends I18NStandardMBean 25 { 26 public SubclassNotCompliant() throws NotCompliantMBeanException 27 { 28 super(null); 29 } 30 } 31 32 35 public interface FullManagement 36 { 37 public void setAttrib(int i); 38 39 public void operation(int i, Object obj); 40 } 41 42 45 public interface OverloadManagement 46 { 47 public void setAttrib(int i); 48 49 public void operation(); 50 51 public void operation(int i); 52 53 public void operation(Object obj); 54 55 public void operation(int[] array); 56 57 public void operation(Object [] array); 58 59 public void operation(int i, Object obj); 60 61 public void operation(int i, int j, int k); 62 63 public void operation(int i, int j, String s); 64 } 65 66 69 public static class BaseSubclass extends I18NStandardMBean 70 { 71 private int m_attrib = 0; 72 73 protected BaseSubclass(Class mbeanInterface) throws NotCompliantMBeanException 74 { 75 super(mbeanInterface); 76 } 77 78 protected BaseSubclass(Class mbeanInterface, Locale locale) throws NotCompliantMBeanException 79 { 80 super(mbeanInterface, locale); 81 } 82 83 public void setAttrib(int i) 84 { 85 m_attrib = i; 86 } 87 88 public void operation(int i, Object obj) 89 { 90 } 91 } 92 93 96 public static class BaseImplementation implements FullManagement 97 { 98 private int m_attrib = 0; 99 100 public void setAttrib(int i) 101 { 102 m_attrib = i; 103 } 104 105 public void operation(int i, Object obj) 106 { 107 } 108 } 109 110 113 public static class SubclassNameOnly extends BaseSubclass implements FullManagement 114 { 115 public SubclassNameOnly() throws NotCompliantMBeanException 116 { 117 super(FullManagement.class); 118 } 119 120 public SubclassNameOnly(Locale locale) throws NotCompliantMBeanException 121 { 122 super(FullManagement.class, locale); 123 } 124 } 125 126 129 public static class SubclassComplete extends BaseSubclass implements FullManagement 130 { 131 public SubclassComplete(Locale locale) throws NotCompliantMBeanException 132 { 133 super(FullManagement.class, locale); 134 } 135 136 public SubclassComplete() throws NotCompliantMBeanException 137 { 138 super(FullManagement.class); 139 } 140 } 141 142 145 public static class SubclassNoBundle extends BaseSubclass implements FullManagement 146 { 147 public SubclassNoBundle() throws NotCompliantMBeanException 148 { 149 super(FullManagement.class); 150 } 151 } 152 153 156 public static class SubclassAmbiguousConstructors extends BaseSubclass implements FullManagement 157 { 158 public SubclassAmbiguousConstructors() throws NotCompliantMBeanException 160 { 161 super(FullManagement.class); 162 } 163 164 public SubclassAmbiguousConstructors(Locale locale) throws NotCompliantMBeanException 166 { 167 super(FullManagement.class, locale); 168 } 169 170 public SubclassAmbiguousConstructors(int i) throws NotCompliantMBeanException 172 { 173 super(FullManagement.class); 174 } 175 176 public SubclassAmbiguousConstructors(String s) throws NotCompliantMBeanException 178 { 179 super(FullManagement.class); 180 } 181 182 public SubclassAmbiguousConstructors(int i, int j) throws NotCompliantMBeanException 184 { 185 super(FullManagement.class); 186 } 187 188 public SubclassAmbiguousConstructors(int i, int j, int k) throws NotCompliantMBeanException 191 { 192 super(FullManagement.class); 193 } 194 195 public SubclassAmbiguousConstructors(int i, int j, String s) throws NotCompliantMBeanException 196 { 197 super(FullManagement.class); 198 } 199 } 200 201 204 public static class SubclassOverload extends BaseSubclass implements OverloadManagement 205 { 206 207 public SubclassOverload() throws NotCompliantMBeanException 209 { 210 super(OverloadManagement.class); 211 } 212 213 public SubclassOverload(Object obj) throws NotCompliantMBeanException 215 { 216 super(OverloadManagement.class); 217 } 218 219 public SubclassOverload(int i) throws NotCompliantMBeanException 221 { 222 super(OverloadManagement.class); 223 } 224 225 public SubclassOverload(int[] i) throws NotCompliantMBeanException 227 { 228 super(OverloadManagement.class); 229 } 230 231 public SubclassOverload(Object [] objs) throws NotCompliantMBeanException 233 { 234 super(OverloadManagement.class); 235 } 236 237 public SubclassOverload(int a, Object b) throws NotCompliantMBeanException 239 { 240 super(OverloadManagement.class); 241 } 242 243 public void operation() 244 { 245 } 246 247 public void operation(int i) 248 { 249 } 250 251 public void operation(Object obj) 252 { 253 } 254 255 public void operation(int[] array) 256 { 257 } 258 259 public void operation(Object [] array) 260 { 261 } 262 263 public void operation(int i, int j, int k) 264 { 265 } 266 267 public void operation(int i, int j, String s) 268 { 269 } 270 271 } 272 273 276 public static class SubclassAmbiguousOperation extends BaseSubclass implements OverloadManagement 277 { 278 public SubclassAmbiguousOperation() throws NotCompliantMBeanException 279 { 280 super(OverloadManagement.class); 281 } 282 283 public void operation() 284 { 285 } 286 287 public void operation(int i) 288 { 289 } 290 291 public void operation(Object obj) 292 { 293 } 294 295 public void operation(int[] array) 296 { 297 } 298 299 public void operation(Object [] array) 300 { 301 } 302 303 public void operation(int i, int j, int k) 304 { 305 } 306 307 public void operation(int i, int j, String s) 308 { 309 } 310 311 } 312 313 316 public static class ImplementationNameOnly extends BaseImplementation 317 { 318 } 319 320 323 public static class ImplementationComplete extends BaseImplementation 324 { 325 } 326 327 330 public static class ImplementationNoBundle extends BaseImplementation 331 { 332 } 333 334 335 } 336 | Popular Tags |