Package org.axonframework.examples.addressbook.web.dto

Examples of org.axonframework.examples.addressbook.web.dto.ContactDTO


    private UpdateMessageProducerForFlex producer;

    @EventHandler
    public void handleContactCreatedEvent(ContactCreatedEvent event) {
        logger.debug("Received an event of type {}", event.getClass().getSimpleName());
        ContactDTO contactDTO = new ContactDTO();
        contactDTO.setName(event.getName());
        contactDTO.setUuid(event.getContactId());
        producer.sendContactUpdate(contactDTO);
    }
View Full Code Here


    }

    @EventHandler
    public void handleContactNameChangedEvent(ContactNameChangedEvent event) {
        logger.debug("Received an event of type {}", event.getClass().getSimpleName());
        ContactDTO contactDTO = new ContactDTO();
        contactDTO.setName(event.getNewName());
        contactDTO.setUuid(event.getContactId());
        producer.sendContactUpdate(contactDTO);
    }
View Full Code Here

TOP

Related Classes of org.axonframework.examples.addressbook.web.dto.ContactDTO

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.