Package org.axonframework.commandhandling

Examples of org.axonframework.commandhandling.NoHandlerForCommandException


    @Override
    public Object handle(CommandMessage<Object> command, UnitOfWork unitOfWork) throws Throwable {
        try {
            final MethodMessageHandler handler = handlers.get(command.getCommandName());
            if (handler == null) {
                throw new NoHandlerForCommandException("No handler found for command " + command.getCommandName());
            }
            if (unitOfWork != null) {
                unitOfWork.attachResource(ParameterResolverFactory.class.getName(), parameterResolverFactory);
            }
            return handler.invoke(target, command);
View Full Code Here

TOP

Related Classes of org.axonframework.commandhandling.NoHandlerForCommandException

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.