Package org.switchyard.event

Examples of org.switchyard.event.ReferenceRegistrationEvent


            ServiceInterface contract, ExchangeHandler handler,  ServiceMetadata metadata) {
        ServiceReferenceImpl reference = new ServiceReferenceImpl(serviceName, contract, this, handler, metadata);
        Dispatcher dispatch = _exchangeBus.createDispatcher(reference);
        reference.setDispatcher(dispatch);
        _serviceRegistry.registerServiceReference(reference);
        _eventManager.publish(new ReferenceRegistrationEvent(reference));
       
        return reference;
    }
View Full Code Here


   
    @Test
    public void testAddObserver() {
        CountingEventObserver obs = new CountingEventObserver();
        _domain.addEventObserver(obs, ReferenceRegistrationEvent.class);
        _domain.getEventPublisher().publish(new ReferenceRegistrationEvent(_inOnlyReference));
        Assert.assertEquals(1, obs.count);
    }
View Full Code Here

TOP

Related Classes of org.switchyard.event.ReferenceRegistrationEvent

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.