Package org.apache.cxf.bus.cxf

Examples of org.apache.cxf.bus.cxf.CXFBusFactory


                LOG.log(Level.WARNING, "Failed to create naming context", e);
            }
        }

        this.portInfo = portInfo;
        this.bus = (new CXFBusFactory()).createBus();
        Class endpointClass = classLoader.loadClass(endpointClassName);
        endpointInstance = endpointClass.newInstance();
    }
View Full Code Here


    private final Bus bus;
    private final Object endpointInstance;

    public CXFWebServiceContainerFactoryGBean(PortInfo portInfo, String endpointClassName, ClassLoader classLoader) throws ClassNotFoundException, IllegalAccessException, InstantiationException {
        this.portInfo = portInfo;
        this.bus = new CXFBusFactory().getDefaultBus();
        Class endpointClass = classLoader.loadClass(endpointClassName);
        endpointInstance = endpointClass.newInstance();
    }
View Full Code Here

import org.apache.cxf.management.InstrumentationType;

public class ManagedBusTest extends TestCase {

    public void xtestManagedCXFBus() {
        CXFBusFactory factory = new CXFBusFactory();
        Map<String, Object> properties = new HashMap<String, Object>();
        properties.put(Configurer.USER_CFG_FILE_PROPERTY_NAME,
                       "org/apache/cxf/systest/management/managed-cxf.xml");
        Bus bus = factory.createBus(null, properties);
        bus.shutdown(true);
    }
View Full Code Here

    public Bus getBus() {
        return bus;
    }

    protected Bus createBus() throws BusException {
        return new CXFBusFactory().createBus();
    }
View Full Code Here

        }
        System.clearProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME);
    }
  
    public void testCXFDefaultClientEndpoint() {
        factory = new CXFBusFactory();
        factory.setDefaultBus(null);
        factory.getDefaultBus();
        System.setProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME, CXFBusFactory.class.getName());
        doTestDefaultClientEndpoint();
    }
View Full Code Here

        printInterceptors("outFault", interceptors);
        assertNull("Unexpected test interceptor", findTestInterceptor(interceptors));
    }

    public void testCXFConfiguredClientEndpoint() {
        CXFBusFactory cf = new CXFBusFactory();
        factory = cf;
        factory.setDefaultBus(null);
        Map<String, Object> properties = new HashMap<String, Object>();
        properties.put(Configurer.USER_CFG_FILE_PROPERTY_NAME,
            "org/apache/cxf/jaxws/configured-endpoints.xml");
        cf.setDefaultBus(cf.createBus(null, properties));
        System.setProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME, CXFBusFactory.class.getName());
        doTestConfiguredClientEndpoint();
    }
View Full Code Here

        assertEquals("Unexpected interceptor id.", "service-out-fault",
                     findTestInterceptor(interceptors).getId());
    }
   
    public void testCXFDefaultServerEndpoint() {
        factory = new CXFBusFactory();
        factory.setDefaultBus(null);
        factory.getDefaultBus();
        System.setProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME, CXFBusFactory.class.getName());
        initializeBus();
        doTestDefaultServerEndpoint();
View Full Code Here

        interceptors = svc.getOutFaultInterceptors();
        assertNull("Unexpected test interceptor", findTestInterceptor(interceptors));
    }

    public void testCXFConfiguredServerEndpoint() {
        CXFBusFactory cf = new CXFBusFactory();
        factory = cf;
        factory.setDefaultBus(null);
        Map<String, Object> properties = new HashMap<String, Object>();
        properties.put(Configurer.USER_CFG_FILE_PROPERTY_NAME,
            "org/apache/cxf/jaxws/configured-endpoints.xml");
        cf.setDefaultBus(cf.createBus(null, properties));
        initializeBus();
        System.setProperty(BusFactory.BUS_FACTORY_PROPERTY_NAME, CXFBusFactory.class.getName());
        doTestConfiguredServerEndpoint();
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.bus.cxf.CXFBusFactory

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.