Package org.codehaus.xfire.service

Examples of org.codehaus.xfire.service.ServiceFactory


        this.serviceClass = serviceClass;
    }
   
    public Object getProxy() throws Exception {
        if (proxy == null) {
            ServiceFactory factory = ServiceFactoryHelper.findServiceFactory(xfire, serviceClass, null, null);
            Service service = factory.create(serviceClass, null, getDescription(), null);
            JBIClient client = new JBIClient(xfire, service);
            if (interfaceName != null) {
                client.getService().setProperty(JbiChannel.JBI_INTERFACE_NAME, interfaceName);
            }
            if (serviceName != null) {
View Full Code Here


    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

    {
      text = text.trim();
     
        ServiceFactoryBean factoryBean = new ServiceFactoryBean(text);
        factoryBean.setTransportManager(transportManager);
        ServiceFactory factory;
        try
        {
            factory = (ServiceFactory) factoryBean.getObject();
        }
        catch (Exception e)
View Full Code Here

    }

    private Service createServiceFromConfiguration(final Configuration configuration)
            throws ConfigurationException
    {
        final ServiceFactory factory = getServiceFactory(configuration.getChild("factory").getValue(null));
        String encodingUri = configuration.getChild("encodingStyleURI").getValue(null);
        final Map propertiesMap = new HashMap();
       
        if (encodingUri != null)
        {
            propertiesMap.put(AegisBindingProvider.TYPE_MAPPING_KEY, encodingUri);
        }

        if (factory instanceof ObjectServiceFactory)
        {
            ObjectServiceFactory osf = (ObjectServiceFactory) factory;
            osf.setStyle(configuration.getChild("style").getValue("wrapped"));
            osf.setUse(configuration.getChild("use").getValue("wrapped"));
        }

        final Configuration[] properties = configuration.getChildren("property");

        for (int i = 0; i < properties.length; i++)
        {
            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

Related Classes of org.codehaus.xfire.service.ServiceFactory

Copyright © 2018 www.massapicom. 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.