Simple Executor with XML Annotation
Example 7.12. Simple executor with XML annotation @org.jboss.demos.ioc.annotations.StopWatchLog // <-- Pointcut match! public class SimpleExecutor implements Executor { private static Random random = new Random(); public void execute() throws Exception { Thread.sleep(Math.abs(random.nextLong() % 101)); } }