01: package org.objectweb.celtix.bus.bindings;
02:
03: import java.io.IOException;
04:
05: import javax.wsdl.WSDLException;
06:
07: import org.objectweb.celtix.Bus;
08: import org.objectweb.celtix.bindings.BindingFactory;
09: 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(
22: EndpointReferenceType reference) throws IOException,
23: WSDLException {
24: return new TestClientBinding(bus, reference);
25: }
26:
27: public ServerBinding createServerBinding(
28: EndpointReferenceType reference,
29: ServerBindingEndpointCallback cbFactory) {
30: return new TestServerBinding(bus, reference, cbFactory);
31: }
32:
33: public final void init(Bus b) {
34: bus = b;
35: }
36: }
|