1 23 package com.sun.enterprise.management.config; 24 25 import java.util.Map ; 26 27 import javax.management.ObjectName ; 28 import javax.management.AttributeList ; 29 30 import com.sun.enterprise.management.support.oldconfig.OldConfig; 31 32 33 35 public final class DiagnosticServiceConfigFactory extends ConfigFactory 36 { 37 public 38 DiagnosticServiceConfigFactory( final ConfigFactoryCallback callbacks ) 39 { 40 super( callbacks ); 41 } 42 43 private OldConfig 44 getOldConfig() 45 { 46 return getOldConfigProxies().getOldConfig( getConfigName() ); 47 } 48 49 public ObjectName 50 createOldChildConfig( final AttributeList attrs ) 51 { 52 return getOldConfig().createDiagnosticService( attrs ); 53 } 54 55 public ObjectName 56 create() 57 { 58 final Map <String ,String > params = initParams( null, null ); 59 60 return createChild( params ); 61 } 62 63 64 public void 65 internalRemove( final ObjectName objectName ) 66 { 67 getOldConfig().removeDiagnosticService(); 68 } 69 } 70 71 72 73 74 | Popular Tags |