Examples of BindingFactory


Examples of org.objectweb.celtix.bindings.BindingFactory

    private void loadBindingFactory(String className, String ...namespaceURIs) throws BusException {
        try {
            Class<? extends BindingFactory> clazz =
                    Class.forName(className).asSubclass(BindingFactory.class);

            BindingFactory factory = clazz.newInstance();
            factory.init(bus);

            for (String namespace : namespaceURIs) {
                registerBinding(namespace, factory);
            }
        } catch (ClassNotFoundException cnfe) {
View Full Code Here

Examples of org.objectweb.celtix.bindings.BindingFactory

        if (null == bindingId) {
            // Use SOAP1.1/HTTP Binding as default. JAX-WS Spec 5.2.1
            bindingId = SOAPBinding.SOAP11HTTP_BINDING;
        }
       
        BindingFactory factory = bus.getBindingManager().getBindingFactory(bindingId);
        if (null == factory) {
            throw new BusException(new Message("BINDING_FACTORY_MISSING_EXC", LOG, bindingId));
        }
        ServerBinding bindingImpl = factory.createServerBinding(reference, this);
        assert null != bindingImpl;
        return bindingImpl;

    }
View Full Code Here

Examples of org.objectweb.celtix.bindings.BindingFactory

   
    public void testInvoke() throws Exception {

        // setup test fixture
        //
        BindingFactory bindingFact = mockBusFactory.getMock(BindingFactory.class);
        assertNotNull("could not get binding factory", bindingFact);
        transport.invoke(req, resp);       
        EasyMock.replay(transport);
       
       
        ServerBinding mockServerBinding = EasyMock.createMock(ServerBinding.class);
       
        bindingFact.createServerBinding((EndpointReferenceType)EasyMock.notNull(),
                                        (ServerBindingEndpointCallback)EasyMock.notNull());
        EasyMock.expectLastCall().andReturn(mockServerBinding);
        mockServerBinding.activate();
       
       
View Full Code Here

Examples of org.objectweb.celtix.bindings.BindingFactory

        assertNotNull(bus);

        BindingManager bindingManager = bus.getBindingManager();
        assertNotNull(bindingManager);
       
        BindingFactory factory = bindingManager.getBindingFactory("http://schemas.xmlsoap.org/wsdl/soap/");
        assertNotNull(factory);
        //Last Created bus should always be returned.
        Thread.sleep(100);
        bus.shutdown(true);
    }   
View Full Code Here

Examples of org.objectweb.celtix.bindings.BindingFactory

        testUtils = new TestUtils();
    }
   
    public void testCreateClientBinding() throws Exception {
        Bus bus = Bus.init(new String[0]);
        BindingFactory factory =
            bus.getBindingManager().getBindingFactory(
                "http://celtix.objectweb.org/bindings/xmlformat");
        assertNotNull(factory);
       
        EndpointReferenceType address = testUtils.getEndpointReference();
       
        ClientBinding clientBinding = factory.createClientBinding(address);
        assertNotNull(clientBinding);
        assertTrue(XMLClientBinding.class.isInstance(clientBinding));
       
        XMLClientBinding xmlClientBinding = (XMLClientBinding)clientBinding;
        Binding b = xmlClientBinding.getBinding();
View Full Code Here

Examples of org.pentaho.ui.xul.binding.BindingFactory

      bindingFactory.createBinding(wrapper, DrillDownModel.TOOLTIP_FORMULA_PROPERTY, "link-tooltip", "value");//NON-NLS
    }
    final XulComponent previewElement = doc.getElementById("preview");//NON-NLS
    if (previewElement != null)
    {
      final BindingFactory singleSourceBinding = new DefaultBindingFactory();
      singleSourceBinding.setBindingType(Binding.Type.ONE_WAY);
      singleSourceBinding.setDocument(doc);
      singleSourceBinding.createBinding(wrapper, "preview", "preview", "value");//NON-NLS
    }

    // we manage the binding between the table and the outside world manually
    wrapper.refresh();
    final XulComponent paramTableElement = doc.getElementById("parameter-table");//NON-NLS
View Full Code Here

Examples of org.springframework.richclient.form.binding.BindingFactory

    EasyMock.verify(mockInterceptor);
  }
 
  protected final void doSetUp() throws Exception {
    formModel = new DefaultFormModel(new TestBean());
    BindingFactory bindingFactory= new SwingBindingFactory(formModel);
   
    formBuilder = createFormBuilder(bindingFactory);
    assertNotNull("formBuilder cannot be null", formBuilder);
   
    mockComponentFactory= (ComponentFactory) EasyMock.createMock(ComponentFactory.class);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.