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 SessionManagerConfigFactory extends ConfigFactory 40 { 41 private final OldSessionConfigMBean mOldSessionConfigMBean; 42 43 public 44 SessionManagerConfigFactory( 45 final ConfigFactoryCallback callbacks) 46 { 47 super( callbacks ); 48 49 mOldSessionConfigMBean = 50 getOldConfigProxies().getOldSessionConfigMBean( getConfigName() ); 51 } 52 53 public ObjectName 54 create( ) 55 { 56 final Map <String ,String > params = initParams( null, null ); 57 58 final ObjectName amxName = createChild( params ); 59 60 return( amxName ); 61 } 62 63 protected void 64 internalRemove( final ObjectName objectName) 65 { 66 mOldSessionConfigMBean.removeSessionManager(); 67 } 68 69 protected ObjectName 70 createOldChildConfig( AttributeList attrs ) 71 { 72 return mOldSessionConfigMBean.createSessionManager( attrs ); 73 } 74 } 75 76 | Popular Tags |