1 2 24 25 package com.sun.enterprise.connectors.util; 26 27 import com.sun.enterprise.deployment.*; 28 import com.sun.enterprise.config.serverbeans.ElementProperty; 29 import com.sun.enterprise.connectors.*; 30 import com.sun.enterprise.util.*; 31 import com.sun.logging.LogDomains; 32 import java.util.logging.*; 33 import java.util.*; 34 import java.lang.*; 35 import java.lang.reflect.*; 36 import java.io.IOException ; 37 import org.xml.sax.SAXParseException ; 38 39 46 47 public class ResourceAdapterConfigParserImpl implements ConnectorConfigParser { 48 49 static Logger _logger = LogDomains.getLogger(LogDomains.RSR_LOGGER); 50 51 55 56 public ResourceAdapterConfigParserImpl() { 57 58 } 59 60 78 79 public Properties getJavaBeanProps(ConnectorDescriptor desc, 80 String connectionDefName, String rarName) throws ConnectorRuntimeException 81 { 82 83 if(desc == null) { 84 throw new ConnectorRuntimeException("Invalid arguments"); 85 } 86 87 94 95 Set ddVals = desc.getConfigProperties(); 96 Properties mergedVals = null; 97 String className = desc.getResourceAdapterClass(); 98 Properties introspectedVals = null; 99 if(className != null && className.length() != 0) { 100 introspectedVals=configParserUtil.introspectJavaBean( 101 className,ddVals); 102 mergedVals = configParserUtil.mergeProps(ddVals,introspectedVals); 103 } 104 return mergedVals; 105 } 106 107 } 108 | Popular Tags |