Package org.apache.servicemix.nmr.core

Examples of org.apache.servicemix.nmr.core.InternalEndpointWrapper


        ServiceAssemblyImpl sa = createServiceAssembly();
       
        AssemblyReferencesListener listener = new AssemblyReferencesListener();
        listener.setAssembly(sa);
       
        InternalEndpoint endpoint = new InternalEndpointWrapper(new EndpointImpl(ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "endpoint")),
                                                                ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "internal-endpoint"));
        listener.endpointRegistered(endpoint);
        listener.setAssembly(null);
       
        InternalExchange exchange = new ExchangeImpl(Pattern.InOnly);
View Full Code Here


        ServiceAssemblyImpl sa = createServiceAssembly();
       
        AssemblyReferencesListener listener = new AssemblyReferencesListener();
        listener.setAssembly(sa);
       
        InternalEndpoint endpoint = new InternalEndpointWrapper(new EndpointImpl(ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "endpoint")),
                                                                ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "internal-endpoint"));
        listener.endpointRegistered(endpoint);
        listener.setAssembly(null);
       
        InternalExchange exchange = new ExchangeImpl(Pattern.InOnly);
View Full Code Here

        ServiceAssemblyImpl sa = createServiceAssembly();
       
        AssemblyReferencesListener listener = new AssemblyReferencesListener();
        listener.setAssembly(sa);
       
        InternalEndpoint endpoint = new InternalEndpointWrapper(new EndpointImpl(ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "endpoint")),
                                                                ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "internal-endpoint"));
        listener.endpointRegistered(endpoint);
        listener.setAssembly(null);
       
        InternalExchange exchange = new ExchangeImpl(Pattern.InOnly);
View Full Code Here

    private <E extends Endpoint> List<E> findEndpoints(Class<E> type) {
        List<E> result = new LinkedList<E>();

        for (Endpoint endpoint : nmr.getEndpointRegistry().getServices()) {
            if (endpoint instanceof InternalEndpointWrapper) {
                InternalEndpointWrapper wrapper = (InternalEndpointWrapper) endpoint;
                if (type.isAssignableFrom(wrapper.getEndpoint().getClass())) {
                    result.add(type.cast(wrapper.getEndpoint()));
                }
            }
        }
        return result;
    }
View Full Code Here

        ServiceAssemblyImpl sa = createServiceAssembly();
       
        AssemblyReferencesListener listener = new AssemblyReferencesListener();
        listener.setAssembly(sa);
       
        InternalEndpoint endpoint = new InternalEndpointWrapper(new EndpointImpl(ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "endpoint")),
                                                                ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "internal-endpoint"));
        listener.endpointRegistered(endpoint);
        listener.setAssembly(null);
       
        InternalExchange exchange = new ExchangeImpl(Pattern.InOnly);
View Full Code Here

        ServiceAssemblyImpl sa = createServiceAssembly();
       
        AssemblyReferencesListener listener = new AssemblyReferencesListener();
        listener.setAssembly(sa);
       
        InternalEndpoint endpoint = new InternalEndpointWrapper(new EndpointImpl(ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "endpoint")),
                                                                ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "internal-endpoint"));
        listener.endpointRegistered(endpoint);
        listener.setAssembly(null);
       
        InternalExchange exchange = new ExchangeImpl(Pattern.InOnly);
View Full Code Here

        ServiceAssemblyImpl sa = createServiceAssembly();
       
        AssemblyReferencesListener listener = new AssemblyReferencesListener();
        listener.setAssembly(sa);
       
        InternalEndpoint endpoint = new InternalEndpointWrapper(new EndpointImpl(ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "endpoint")),
                                                                ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "internal-endpoint"));
        listener.endpointRegistered(endpoint);
        listener.setAssembly(null);
       
        InternalExchange exchange = new ExchangeImpl(Pattern.InOnly);
View Full Code Here

        assertEquals(Status.Error, exchange.getStatus());
    }

    public void testNoExceptionsOnUnknownExchange() throws Exception {
        AssemblyReferencesListener listener = new AssemblyReferencesListener();
        InternalEndpoint endpoint = new InternalEndpointWrapper(new EndpointImpl(ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "endpoint")),
                                                                ServiceHelper.createMap(Endpoint.ENDPOINT_NAME, "internal-endpoint"));
       
        InternalExchange exchange = new ExchangeImpl(Pattern.InOnly);
        exchange.setSource(endpoint);
        exchange.setProperty(DeliveryChannelImpl.SEND_SYNC, Boolean.TRUE);
View Full Code Here

    private <E extends Endpoint> List<E> findEndpoints(Class<E> type) {
        List<E> result = new LinkedList<E>();

        for (Endpoint endpoint : nmr.getEndpointRegistry().getServices()) {
            if (endpoint instanceof InternalEndpointWrapper) {
                InternalEndpointWrapper wrapper = (InternalEndpointWrapper) endpoint;
                if (type.isAssignableFrom(wrapper.getEndpoint().getClass())) {
                    result.add(type.cast(wrapper.getEndpoint()));
                }
            }
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of org.apache.servicemix.nmr.core.InternalEndpointWrapper

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.