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 ManagedJNDIResource extends ConfigMBeanBase implements ConfigAttributeName.ExternalJndiResource 47 { 48 51 private static final String [][] MAPLIST = 52 { 53 {kJndiName , ATTRIBUTE + ServerTags.JNDI_NAME}, 54 {kJndiLookupName , ATTRIBUTE + ServerTags.JNDI_LOOKUP_NAME}, 55 {kResType , ATTRIBUTE + ServerTags.RES_TYPE}, 56 {kFactoryClass , ATTRIBUTE + ServerTags.FACTORY_CLASS}, 57 {kDescription , ATTRIBUTE + PSEUDO_ATTR_DESCRIPTION}, 59 }; 60 63 private static final String [] ATTRIBUTES = 64 { 65 kJndiName + ", String, R" , 66 kJndiLookupName + ", String, RW" , 67 kResType + ", String, RW" , 68 kFactoryClass + ", String, RW" , 69 kDescription + ", String, RW" , 71 }; 72 75 private static final String [] OPERATIONS = null; 76 77 78 81 public ManagedJNDIResource() throws MBeanConfigException 82 { 83 this.setDescriptions(MAPLIST, ATTRIBUTES, OPERATIONS); 84 } 85 86 91 public ManagedJNDIResource(String instanceName, String jndiName) throws ConfigException,MBeanConfigException 92 { 93 this(); initialize(ObjectNames.kJndiResourceType, new String []{instanceName, jndiName}); 95 } 96 } 97 | Popular Tags |