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 import com.sun.enterprise.management.support.oldconfig.OldSessionConfigMBean; 38 39 final class SessionPropertiesConfigFactory extends ConfigFactory 40 { 41 private final OldSessionConfigMBean mOldSessionConfigMBean; 42 43 public 44 SessionPropertiesConfigFactory( 45 final ConfigFactoryCallback callbacks, 46 final OldSessionConfigMBean old ) 47 { 48 super( callbacks ); 49 50 mOldSessionConfigMBean = old; 51 } 52 53 public ObjectName 54 create( Map <String ,String > optional ) 55 { 56 final Map <String ,String > params = initParams( optional ); 57 58 final ObjectName amxName = createChild( params ); 59 60 return( amxName ); 61 } 62 63 protected void 64 internalRemove( final ObjectName objectName) 65 { 66 mOldSessionConfigMBean.removeSessionProperties(); 67 } 68 69 protected ObjectName 70 createOldChildConfig( final AttributeList attrs ) 71 { 72 return mOldSessionConfigMBean.createSessionProperties( attrs ); 73 } 74 } 75 76 | Popular Tags |