1 23 24 28 29 31 32 package com.sun.enterprise.management.support; 33 34 import java.io.IOException ; 35 36 import javax.management.ObjectName ; 37 import javax.management.MBeanServer ; 38 import javax.management.MBeanServerConnection ; 39 import javax.management.MBeanInfo ; 40 import javax.management.MBeanAttributeInfo ; 41 import javax.management.AttributeList ; 42 import javax.management.Attribute ; 43 import javax.management.AttributeNotFoundException ; 44 import javax.management.InvalidAttributeValueException ; 45 import javax.management.InstanceNotFoundException ; 46 import javax.management.IntrospectionException ; 47 import javax.management.ReflectionException ; 48 49 55 public class DummyDelegate extends DelegateBase 56 { 57 58 private 59 DummyDelegate() 60 { 61 super( DummyDelegate.class.getName(), null); 62 } 63 64 public synchronized DummyDelegate 65 getInstance() 66 { 67 if ( INSTANCE == null ) 68 { 69 INSTANCE = new DummyDelegate(); 70 } 71 return( INSTANCE ); 72 } 73 74 static public DummyDelegate INSTANCE = null; 75 76 public Object 77 getAttribute( final String attrName ) 78 throws AttributeNotFoundException 79 { 80 return null; 81 } 82 83 public void 84 setAttribute( final Attribute attr ) 85 throws AttributeNotFoundException , InvalidAttributeValueException 86 { 87 throw new AttributeNotFoundException ("no attributes defined for dummy delegate"); 88 } 89 90 public MBeanInfo 91 getMBeanInfo() 92 { 93 return null; 94 } 95 96 97 99 public final Object 100 invoke( 101 String operationName, 102 Object [] args, 103 String [] types ) 104 { 105 return null; 106 } 107 } 108 | Popular Tags |