1 17 package org.apache.geronimo.cxf; 18 19 import java.io.IOException ; 20 21 import org.apache.cxf.configuration.Configurer; 22 import org.apache.cxf.service.model.EndpointInfo; 23 import org.apache.cxf.transport.Destination; 24 import org.apache.cxf.transport.http.HTTPTransportFactory; 25 import org.apache.cxf.Bus; 26 27 public class GeronimoDestinationFactory extends HTTPTransportFactory { 28 29 public GeronimoDestinationFactory(Bus bus) { 30 super(); 31 setBus(bus); 32 } 33 34 public Destination getDestination(EndpointInfo endpointInfo) 35 throws IOException { 36 GeronimoDestination destination = new GeronimoDestination(getBus(), this, endpointInfo); 37 Configurer configurer = getBus().getExtension(Configurer.class); 38 if (null != configurer) { 39 configurer.configureBean(destination); 40 } 41 return destination; 42 } 43 44 } 45 | Popular Tags |