1 55 package org.jboss.axis.deployment.wsdd.providers; 56 57 import org.jboss.axis.EngineConfiguration; 58 import org.jboss.axis.Handler; 59 import org.jboss.axis.deployment.wsdd.WSDDConstants; 60 import org.jboss.axis.deployment.wsdd.WSDDProvider; 61 import org.jboss.axis.deployment.wsdd.WSDDService; 62 import org.jboss.axis.providers.BasicProvider; 63 import org.jboss.axis.utils.ClassUtils; 64 65 66 69 public class WSDDComProvider 70 extends WSDDProvider 71 { 72 public static final String OPTION_PROGID = "ProgID"; 73 public static final String OPTION_THREADING_MODEL = "threadingModel"; 74 75 public String getName() 76 { 77 return WSDDConstants.PROVIDER_COM; 78 } 79 80 public Handler newProviderInstance(WSDDService service, 81 EngineConfiguration registry) 82 throws Exception 83 { 84 Class _class = ClassUtils.forName("org.jboss.axis.providers.ComProvider"); 85 86 BasicProvider provider = (BasicProvider)_class.newInstance(); 87 88 String option = service.getParameter("ProgID"); 89 90 if (!option.equals("")) 91 { 92 provider.setOption(OPTION_PROGID, option); 93 } 94 95 option = service.getParameter("threadingModel"); 96 97 if (option != null && !option.equals("")) 98 { 99 provider.setOption(OPTION_THREADING_MODEL, option); 100 } 101 102 return provider; 103 } 104 } 105 | Popular Tags |