Package org.codehaus.xfire.service

Examples of org.codehaus.xfire.service.ServiceFactory.create()


    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


        {
            propertiesMap.put(properties[i].getAttribute("name"), properties[i].getAttribute("value"));
        }
       
        final Service service =
                factory.create(loadClass(configuration.getChild("serviceClass")),
                               configuration.getChild("name").getValue(),
                               configuration.getChild("namespace").getValue(""),
                               propertiesMap);

        return service;
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.