001    package org.shiftone.jrat.integration.aop.alliance;
002    
003    
004    import org.aopalliance.intercept.MethodInvocation;
005    import org.shiftone.jrat.api.Command;
006    
007    
008    /**
009     * @author jeff@shiftone.org (Jeff Drost)
010     */
011    public class AllianceMethodInvocationCommand implements Command {
012    
013        private final MethodInvocation methodInvocation;
014    
015        public AllianceMethodInvocationCommand(MethodInvocation methodInvocation) {
016            this.methodInvocation = methodInvocation;
017        }
018    
019    
020        public Object execute() throws Throwable {
021            return methodInvocation.proceed();
022        }
023    }