1 23 24 package com.sun.enterprise.admin.server.core.mbean.config; 25 26 import javax.management.*; 28 29 import com.sun.enterprise.config.ConfigException; 31 import com.sun.enterprise.config.serverbeans.ServerTags; 32 33 import com.sun.enterprise.admin.server.core.mbean.meta.MBeanEasyConfig; 35 import com.sun.enterprise.admin.common.exception.MBeanConfigException; 36 import com.sun.enterprise.admin.common.constant.ConfigAttributeName; 37 import com.sun.enterprise.admin.common.ObjectNames; 38 39 45 public class ManagedPMFactoryResource extends ConfigMBeanBase implements ConfigAttributeName.PMFactoryResource 46 { 47 private static final String [][] MAPLIST = { 48 {kJndiName, ATTRIBUTE + ServerTags.JNDI_NAME}, 49 {kFactoryClass, ATTRIBUTE + ServerTags.FACTORY_CLASS}, 50 {kJdbcResourceJndiName, ATTRIBUTE + ServerTags.JDBC_RESOURCE_JNDI_NAME}, 51 {kDescription, ATTRIBUTE + PSEUDO_ATTR_DESCRIPTION}, 53 }; 54 55 private static final String [] ATTRIBUTES = 56 { 57 kJndiName + ", String, R" , 58 kFactoryClass + ", String, RW" , 59 kJdbcResourceJndiName + ", String, RW", 60 kDescription + ", String, RW" , 62 }; 63 64 private static final String [] OPERATIONS = null; 65 66 69 public ManagedPMFactoryResource() throws MBeanConfigException 70 { 71 this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS); 72 } 73 74 public ManagedPMFactoryResource(String instanceName, String jndiName) 75 throws MBeanConfigException 76 { 77 this(); initialize(ObjectNames.kPersistenceManagerFactoryResourceType, new String []{instanceName, jndiName}); 79 } 80 } 81 | Popular Tags |