001    package org.shiftone.jrat.integration.aop.dynaop;
002    
003    
004    import dynaop.Invocation;
005    import org.shiftone.jrat.api.Monitor;
006    
007    
008    /**
009     * @author jeff@shiftone.org (Jeff Drost)
010     */
011    public class DynaopInterceptor implements dynaop.Interceptor {
012    
013        public Object intercept(Invocation invocation) throws Throwable {
014            return Monitor.execute(invocation.getMethod(), invocation.getProxy().getProxyContext().unwrap(),
015                    new DynaopInvocationCommand(invocation));
016        }
017    }