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 import com.sun.enterprise.config.serverbeans.ServerXPathHelper; 33 34 35 import com.sun.enterprise.admin.common.ObjectNames; 37 import com.sun.enterprise.admin.common.exception.MBeanConfigException; 38 import com.sun.enterprise.admin.common.constant.ConfigAttributeName; 39 40 46 public class ManagedCustomResource extends ConfigMBeanBase implements ConfigAttributeName.CustomResource 47 { 48 51 private static final String [][] MAPLIST = 52 { 53 {kJndiName , ATTRIBUTE + ServerTags.JNDI_NAME}, 54 {kResType , ATTRIBUTE + ServerTags.RES_TYPE}, 55 {kFactoryClass , ATTRIBUTE + ServerTags.FACTORY_CLASS}, 56 {kDescription , ATTRIBUTE + PSEUDO_ATTR_DESCRIPTION}, 58 }; 59 62 private static final String [] ATTRIBUTES = 63 { 64 kJndiName + ", String, R" , 65 kResType + ", String, RW" , 66 kFactoryClass + ", String, RW" , 67 kDescription + ", String, RW" , 69 }; 70 71 74 private static final String [] OPERATIONS = null; 75 76 77 80 public ManagedCustomResource() throws MBeanConfigException 81 { 82 this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS); 83 } 84 85 90 public ManagedCustomResource(String instanceName, String jndiName) throws MBeanConfigException 91 { 92 this(); 93 initialize(ObjectNames.kCustomResourceType, new String []{instanceName, jndiName}); 94 } 95 } 96 | Popular Tags |