01: /*
02: * Created on 25 Oct 2006
03: */
04: package uk.org.ponder.util;
05:
06: /**
07: * Invokes a Runnable's "run" method, with the possible addition of some
08: * logic either before or after (or both) the invokation. In terms of AOP
09: * programming this is a pure-JDK equivalent of an "Interceptor", which may
10: * be used to implement an "execute around Advice".
11: * @author Antranig Basman (antranig@caret.cam.ac.uk)
12: *
13: */
14:
15: public interface RunnableInvoker {
16: public void invokeRunnable(Runnable torun);
17: }
|