Examples of ServiceFactory


Examples of org.codehaus.xfire.service.ServiceFactory

    public void setUp()
            throws Exception
    {
        super.setUp();

        ServiceFactory factory = getServiceFactory();
       
        service = factory.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);

        getServiceRegistry().register(service);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.ServiceFactory

    public void setUp()
            throws Exception
    {
        super.setUp();

        ServiceFactory factory = getServiceFactory();
       
        service = factory.create(Echo.class);

        getServiceRegistry().register(service);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.ServiceFactory

        Echo echoBean = new EchoImpl();
        exporter = new XFireExporter();
        exporter.setXfire(getXFire());
        exporter.setServiceInterface(Echo.class);
        exporter.setServiceBean(echoBean);
        ServiceFactory serviceFactory = new ObjectServiceFactory(getXFire().getTransportManager(),
                                                                 null);

        exporter.setServiceFactory(serviceFactory);
    }
View Full Code Here

Examples of org.codehaus.xfire.service.ServiceFactory

    public void testSetWSDLProperties()
        throws Exception
    {
        // first ensure we have a WSDL to parse
        super.setUp();
        ServiceFactory serverFact = getServiceFactory();
    
        XFireHttpServer server = new XFireHttpServer(getXFire());
        server.setPort(8191);
        server.start();
       
        Service service = serverFact.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);

        getServiceRegistry().register(service);

        // now create a special factory that will actually use the created WSDL
View Full Code Here

Examples of org.codehaus.xfire.service.ServiceFactory

    {
        // first ensure we have a WSDL to parse
        super.setUp();
       
        wsdlUrl = "org/codehaus/xfire/spring/remoting/echo.wsdl";
        ServiceFactory serverFact = getServiceFactory();
    
        XFireHttpServer server = new XFireHttpServer(getXFire());
        server.setPort(8191);
        server.start();
       
        Service service = serverFact.create(Echo.class);
        service.setProperty(ObjectInvoker.SERVICE_IMPL_CLASS, EchoImpl.class);

        getServiceRegistry().register(service);

        // now create a special factory that will actually use the created WSDL
View Full Code Here

Examples of org.codehaus.xfire.service.ServiceFactory

    extends AbstractXFireTest
{
    public void testVisitor()
        throws Exception
    {
        ServiceFactory sf = new ObjectServiceFactory(getTransportManager(),
                                                     new MessageBindingProvider())
        {
            protected String getTargetNamespace(Class clazz)
            {
                return "urn:Echo";
            }
        };
       
        Map properties = new HashMap();
        properties.put(ObjectServiceFactory.PORT_TYPE, new QName("urn:Echo", "EchoPortType"));
       
        Service service = sf.create(Echo.class,
                                    new QName("urn:Echo", "Echo"),
                                    getClass().getResource("echo.wsdl"),
                                    null);
       
        assertEquals(1, service.getBindings().size());
View Full Code Here

Examples of org.codehaus.xfire.service.ServiceFactory

    public Object getProxy() throws Exception {
        if (proxy == null) {
            Map props = new HashMap();
            props.put(AnnotationServiceFactory.ALLOW_INTERFACE, Boolean.TRUE);
            ServiceFactory factory = ServiceFactoryHelper.findServiceFactory(xfire, serviceClass, null, null);
            Service service = factory.create(serviceClass, props);
            JBIClient client;
            if (factory instanceof JAXWSServiceFactory) {
                client = new JAXWSJBIClient(xfire, service);
            } else {
                client = new JBIClient(xfire, service);
View Full Code Here

Examples of org.dayatang.ioc.spring.beans.ServiceFactory

public class SpringConfiguration {
 
  @Bean(name = "service1")
  public Service service1() {
        try {
            return new ServiceFactory().getObject();
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
  }
View Full Code Here

Examples of org.gatein.wsrp.services.ServiceFactory

      }
   }

   void forceRefresh() throws InvokerUnavailableException
   {
      ServiceFactory serviceFactory = initServiceFactoryIfNeeded();
      refreshServices(serviceFactory);
   }
View Full Code Here

Examples of org.geotools.gtcatalog.ServiceFactory

  public void start(BundleContext context) throws Exception {
    //get a reference to the service factory + catalog
    Catalog catalog = (Catalog) context
      .getService(context.getServiceReference(Catalog.class.getName()));
    ServiceFactory factory = (ServiceFactory)context
      .getService(context.getServiceReference(ServiceFactory.class.getName()));
   
   
    HttpService service = (HttpService)context
      .getService(context.getServiceReference(HttpService.class.getName()));
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.