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