Package org.axonframework.sample.app.api

Examples of org.axonframework.sample.app.api.Address


     */
    @CommandHandler
    public void handle(RegisterAddressCommand command) {
        Assert.notNull(command.getContactId(), "ContactIdentifier may not be null");
        Assert.notNull(command.getAddressType(), "AddressType may not be null");
        Address address = new Address(command.getStreetAndNumber(), command.getZipCode(), command.getCity());
        Contact contact = repository.load(command.getContactId());
        contact.registerAddress(command.getAddressType(), address);
    }
View Full Code Here

TOP

Related Classes of org.axonframework.sample.app.api.Address

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.