1 23 24 29 30 31 package com.sun.enterprise.management.config; 32 33 import java.util.Set ; 34 import java.util.Collections ; 35 36 import javax.management.ObjectName ; 37 import javax.management.AttributeList ; 38 39 import com.sun.enterprise.management.support.oldconfig.OldSessionManagerMBean; 40 41 import com.sun.appserv.management.config.StorePropertiesConfigKeys; 42 43 import com.sun.appserv.management.util.misc.GSetUtil; 44 45 46 public final class StorePropertiesConfigFactory extends ConfigFactory 47 { 48 private final OldSessionManagerMBean mOldSessionManager; 49 50 public 51 StorePropertiesConfigFactory(final ConfigFactoryCallback callbacks ) 52 { 53 super( callbacks ); 54 55 mOldSessionManager = 56 getOldConfigProxies().getOldSessionManagerMBean( getConfigName() ); 57 } 58 59 60 private final Set <String > LEGAL_OPTIONAL_KEYS = 61 GSetUtil.newUnmodifiableStringSet( StorePropertiesConfigKeys.DIRECTORY_KEY, 62 StorePropertiesConfigKeys.REAP_INTERVAL_IN_SECONDS_KEY); 63 64 protected Set <String > 65 getLegalOptionalCreateKeys() 66 { 67 return( LEGAL_OPTIONAL_KEYS ); 68 } 69 70 71 72 73 protected void 74 internalRemove( final ObjectName objectName ) 75 { 76 mOldSessionManager.removeStoreProperties(); 77 } 78 79 protected ObjectName 80 createOldChildConfig( final AttributeList attrs ) 81 { 82 return mOldSessionManager.createStoreProperties( attrs ); 83 } 84 85 } 86 87 | Popular Tags |