| 1 package org.objectweb.celtix.bus.bindings; 2 3 import java.io.IOException ; 4 5 import javax.wsdl.WSDLException; 6 7 import org.objectweb.celtix.Bus; 8 import org.objectweb.celtix.bindings.BindingFactory; 9 import org.objectweb.celtix.bindings.ClientBinding; 10 import org.objectweb.celtix.bindings.ServerBinding; 11 import org.objectweb.celtix.bindings.ServerBindingEndpointCallback; 12 import org.objectweb.celtix.ws.addressing.EndpointReferenceType; 13 14 public class TestBindingFactory implements BindingFactory { 15 private Bus bus; 16 17 public TestBindingFactory(Bus b) { 18 init(b); 19 } 20 21 public ClientBinding createClientBinding(EndpointReferenceType reference) 22 throws IOException , WSDLException { 23 return new TestClientBinding(bus, reference); 24 } 25 26 public ServerBinding createServerBinding(EndpointReferenceType reference, 27 ServerBindingEndpointCallback cbFactory) { 28 return new TestServerBinding(bus, reference, cbFactory); 29 } 30 31 public final void init(Bus b) { 32 bus = b; 33 } 34 } 35 | Popular Tags |