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