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.OldWebContainerConfigMBean; 31 32 35 36 public final class SessionConfigFactory extends ConfigFactory 37 { 38 private final OldWebContainerConfigMBean mOldWebContainerConfigMBean; 39 40 public 41 SessionConfigFactory(final ConfigFactoryCallback callbacks) 42 { 43 super( callbacks ); 44 45 mOldWebContainerConfigMBean = 46 getOldConfigProxies().getOldWebContainerConfigMBean( getConfigName() ); 47 } 48 49 public ObjectName 50 create() 51 { 52 final Map <String ,String > params = initParams( null, null ); 53 54 final ObjectName amxName = createChild( params ); 55 56 return( amxName ); 57 } 58 59 public void 60 removeSessionConfig() 61 { 62 mOldWebContainerConfigMBean.removeSessionConfig(); 63 } 64 65 protected ObjectName 66 createOldChildConfig( AttributeList attrs ) 67 { 68 return mOldWebContainerConfigMBean.createSessionConfig( attrs ); 69 } 70 } 71 72 | Popular Tags |