1 17 package org.apache.servicemix.http; 18 19 import javax.jbi.servicedesc.ServiceEndpoint; 20 21 import org.apache.servicemix.common.BaseComponent; 22 import org.apache.servicemix.common.BaseLifeCycle; 23 import org.apache.servicemix.common.BaseServiceUnitManager; 24 import org.apache.servicemix.common.Deployer; 25 import org.apache.servicemix.http.jetty.JCLLogger; 26 import org.w3c.dom.DocumentFragment ; 27 28 public class HttpComponent extends BaseComponent { 29 30 static { 31 JCLLogger.init(); 32 } 33 34 37 protected BaseLifeCycle createLifeCycle() { 38 return new HttpLifeCycle(this); 39 } 40 41 44 public BaseServiceUnitManager createServiceUnitManager() { 45 Deployer[] deployers = new Deployer[] { new HttpXBeanDeployer(this), new HttpWsdl1Deployer(this) }; 46 return new BaseServiceUnitManager(this, deployers); 47 } 48 49 52 public ServiceEndpoint resolveEndpointReference(DocumentFragment epr) { 53 return HttpResolvedEndpoint.resolveEndpoint(epr); 54 } 55 56 } 57 | Popular Tags |