1 23 package com.sun.enterprise.management.config; 24 25 import java.util.Map ; 26 import java.util.List ; 27 import java.util.HashMap ; 28 29 import javax.management.ObjectName ; 30 31 import com.sun.appserv.management.base.XTypes; 32 import com.sun.appserv.management.util.misc.TypeCast; 33 34 import com.sun.appserv.management.config.TransformationRuleConfigKeys; 35 import com.sun.appserv.management.config.TransformationRuleConfig; 36 37 38 import com.sun.enterprise.admin.wsmgmt.WebServiceMgrBackEnd; 39 40 import com.sun.enterprise.management.support.Delegate; 41 import com.sun.enterprise.management.support.AMXAttributeNameMapper; 42 43 44 public final class WebServiceEndpointConfigImpl extends AMXConfigImplBase 45 implements ConfigFactoryCallback 46 { 48 public 49 WebServiceEndpointConfigImpl( final Delegate delegate ) 50 { 51 super( delegate ); 52 } 53 54 public Map <String ,ObjectName > getTransformationRuleConfigObjectNameMap() 56 { 57 return(getContaineeObjectNameMap( 58 XTypes.TRANSFORMATION_RULE_CONFIG)); 59 } 60 61 public Map <String ,ObjectName > 63 getRegistryLocationConfigObjectNameMap() 64 { 65 return (getContaineeObjectNameMap(XTypes.REGISTRY_LOCATION_CONFIG)); 66 } 67 68 public List <ObjectName > getTransformationRuleConfigObjectNameList() { 69 final String wsepName = getName(); 70 final String appId = getContainer().getName(); 71 72 final Map <String ,ObjectName > containeeMap = 73 getContaineeObjectNameMap(TransformationRuleConfig.J2EE_TYPE); 74 75 final List <ObjectName > objectNames = TypeCast.checkList( 76 WebServiceMgrBackEnd.getManager(). 77 getTransformationRuleConfigObjectNameList( appId, wsepName, containeeMap ), 78 ObjectName .class); 79 80 return objectNames; 81 } 82 83 84 @Override 85 protected void 86 addCustomMappings( final AMXAttributeNameMapper mapper ) 87 { 88 super.addCustomMappings( mapper ); 89 90 mapper.matchName( "MonitoringLevel", "monitoring" ); 91 } 92 } 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | Popular Tags |