Examples of create()


Examples of org.apache.cxf.jaxrs.client.JAXRSClientFactoryBean.create()

   
    protected BookStore getBookStore(String address,
                                     FailoverFeature feature) throws Exception {
        JAXRSClientFactoryBean bean = createBean(address, feature);
        bean.setServiceClass(BookStore.class);
        return bean.create(BookStore.class);
    }
   
    protected WebClient getWebClient(String address,
                                     FailoverFeature feature) throws Exception {
        JAXRSClientFactoryBean bean = createBean(address, feature);

Examples of org.apache.cxf.jaxrs.spring.JAXRSServerFactoryBeanDefinitionParser.SpringJAXRSServerFactoryBean.create()

    factoryBean.setProviders(arrayList);
    // List<?> providers = factoryBean.getProviders();
    List<?> providers = factoryBean.getProviders();
    // factoryBean.getProperties().put("faultStackTraceEnabled", "true");

    factoryBean.create();
    Thread.sleep(100000);
  }
}

Examples of org.apache.cxf.jaxws.JaxWsClientFactoryBean.create()

        if (wsdlLocation != null)
        {
            cpf.setWsdlURL(wsdlLocation);
        }
       
        return cpf.create();
    }

    private Client createClientFromJaxWsProxy()
        throws ClassNotFoundException, NoSuchMethodException, IOException, CreateException,
        InstantiationException, IllegalAccessException, InvocationTargetException

Examples of org.apache.cxf.jaxws.JaxWsProxyFactoryBean.create()

          pf.setServiceClass(clazz);
          String serviceName = clazz.getName();
          if (serviceName.indexOf(".")!=-1)
            serviceName = serviceName.substring(serviceName.lastIndexOf(".")+1);
           pf.setAddress(muleURL+serviceName);
          Object bean = pf.create();
          return bean;
    }
    catch (Throwable t) {
      Logger.error("", this.getClass().getName(), "getBean", t.getMessage(), t);
      throw t;

Examples of org.apache.cxf.jaxws.JaxWsServerFactoryBean.create()

             
        if (HTTPBinding.HTTP_BINDING.equals(implInfo.getBindingType())) {
            svrFactory.setTransportId("http://cxf.apache.org/bindings/xformat");
        }
       
        server = svrFactory.create();
       
        init();

        org.apache.cxf.endpoint.Endpoint endpoint = getEndpoint();

Examples of org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create()

        bean.setServiceClass(RPCLitGreeterImpl.class);
        RPCLitGreeterImpl greeter = new RPCLitGreeterImpl();
        BeanInvoker invoker = new BeanInvoker(greeter);
        bean.setInvoker(invoker);

        Service service = bean.create();
       
        EndpointInfo endpointInfo = service.getEndpointInfo(new QName(ns, "SoapPortRPCLit"));
        Endpoint endpoint = new EndpointImpl(getBus(), service, endpointInfo);
        exchange.put(Service.class, service);
        exchange.put(Endpoint.class, endpoint);

Examples of org.apache.cxf.service.factory.AbstractBindingInfoFactoryBean.create()

            bindingFactory = new XMLBindingInfoFactoryBean();
        }

        bindingFactory.setServiceFactory(serviceFactory);

        BindingInfo bindingInfo = bindingFactory.create();
        Service service = serviceFactory.getService();
        service.getServiceInfo().addBinding(bindingInfo);

        // TODO we may need to get the transportURI from Address
        ei = new EndpointInfo(service.getServiceInfo(), transportId);

Examples of org.apache.cxf.service.factory.AbstractServiceFactoryBean.create()

            try {
                Bus bus = BusFactoryHelper.newInstance().getDefaultBus();
                JaxWsImplementorInfo implInfo = new JaxWsImplementorInfo(implementor.getClass());
                AbstractServiceFactoryBean serviceFactory = new JaxWsServiceFactoryBean(implInfo);
                serviceFactory.setBus(bus);
                Service service = serviceFactory.create();
                QName endpointName = implInfo.getEndpointName();
                EndpointInfo ei = service.getServiceInfo().getEndpoint(endpointName);
                service.setInvoker(new JAXWSMethodInvoker(implementor));
                org.apache.cxf.endpoint.EndpointImpl endpoint = new JaxWsEndpointImpl(bus, service, ei);
                SOAPBinding jaxWsSoapBinding = new SOAPBindingImpl(ei.getBinding());

Examples of org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create()

        bean.setServiceClass(RPCLitGreeterImpl.class);
        RPCLitGreeterImpl greeter = new RPCLitGreeterImpl();
        BeanInvoker invoker = new BeanInvoker(greeter);
        bean.setInvoker(invoker);

        Service service = bean.create();
       
        EndpointInfo endpointInfo = service.getEndpointInfo(new QName(ns, "SoapPortRPCLit"));
        Endpoint endpoint = new EndpointImpl(getBus(), service, endpointInfo);
        exchange.put(Service.class, service);
        exchange.put(Endpoint.class, endpoint);

Examples of org.apache.cxf.service.factory.ServerFactoryBean.create()

        ServerFactoryBean svrFactory = new ServerFactoryBean();
        svrFactory.setBus(bus);
        svrFactory.setServiceFactory(bean);
        svrFactory.setAddress(address);
        svrFactory.create();
       
        Collection<BindingInfo> bindings = service.getServiceInfo().getBindings();
        assertEquals(1, bindings.size());
       
        ServiceWSDLBuilder wsdlBuilder =
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.