1 23 package com.sun.enterprise.management.config; 24 25 import javax.management.ObjectName ; 26 27 import com.sun.appserv.management.base.DottedNames; 28 import com.sun.appserv.management.base.XTypes; 29 import com.sun.appserv.management.config.ConfigDottedNames; 30 31 import com.sun.enterprise.management.support.DottedNamesBase; 32 import com.sun.enterprise.management.offline.OfflineDottedNamesMgr; 33 34 39 public final class OfflineConfigDottedNamesImpl extends DottedNamesBase 40 implements DottedNames 41 { 42 private OfflineDottedNamesMgr mMgr; 43 44 public 45 OfflineConfigDottedNamesImpl() 46 { 47 mMgr = null; 48 throw new RuntimeException ( "Not fully implemented" ); 49 } 50 51 protected Class 52 getInterface( final String j2eeType ) 53 { 54 return ConfigDottedNames.class; 55 } 56 57 public void 58 preRegisterDone() 59 { 60 mMgr = new OfflineDottedNamesMgr( getMBeanServer() ); 61 } 62 63 protected void 64 setupOldDottedNamesProxy() 65 { 66 mOldDottedNamesProxy = null; 67 } 68 69 protected String 70 deduceJ2EEType( final Class c) 71 { 72 return XTypes.CONFIG_DOTTED_NAMES; 73 } 74 75 public String 76 getGroup() 77 { 78 return( GROUP_CONFIGURATION ); 79 } 80 81 public Object [] 82 dottedNameGet( final String [] names ) 83 { 84 return mMgr.dottedNameGet( names ); 85 } 86 87 public Object 88 dottedNameGet( final String dottedName ) 89 { 90 return mMgr.dottedNameGet( dottedName ); 91 } 92 93 public Object [] 94 dottedNameList( final String [] dottedNames ) 95 { 96 return mMgr.dottedNameList( dottedNames ); 97 } 98 99 public Object [] 100 dottedNameSet( final String [] nameValuePairs ) 101 { 102 return mMgr.dottedNameSet( nameValuePairs ); 103 } 104 105 protected boolean 106 isWriteableDottedName( String name ) 107 { 108 return( true ); 109 } 110 } 111 112 | Popular Tags |