1 23 package com.sun.enterprise.management.config; 24 25 import java.util.Map ; 26 import java.util.Set ; 27 import java.util.Collections ; 28 29 import javax.management.ObjectName ; 30 import javax.management.AttributeList ; 31 32 import com.sun.appserv.management.base.XTypes; 33 34 import com.sun.enterprise.management.support.oldconfig.OldConfig; 35 36 37 40 41 public final class ConnectorServiceConfigFactory extends ConfigFactory 42 { 43 public 44 ConnectorServiceConfigFactory( final ConfigFactoryCallback callbacks) 45 { 46 super( callbacks ); 47 } 48 49 private OldConfig 50 getOldConfig() 51 { 52 return getCallbacks().getOldConfigProxies().getOldConfig( getConfigName() ); 53 } 54 55 public ObjectName 56 create() 57 { 58 final Map <String ,String > params = Collections.emptyMap(); 59 60 final ObjectName amxName = createChild( params ); 61 return( amxName ); 62 } 63 64 protected void 65 internalRemove( final ObjectName objectName ) 66 { 67 getOldConfig().removeConnectorService(); 68 } 69 70 protected ObjectName 71 createOldChildConfig( final AttributeList attrs ) 72 { 73 return getOldConfig().createConnectorService( attrs ); 74 } 75 } 76 77 78 79 80 | Popular Tags |