View Javadoc

1   package org.perf4j.aop;
2   
3   /**
4    * AOP-framework agnostic join point.
5    *
6    * An AOP implementation agnostic interface which offers all information required to do a measure, proceed original
7    * method and log result in customizable way. Specific Join Point implementations in AOP libraries/frameworks
8    * should implement it wrapping their own internal structures.
9    *
10   * @author Marcin ZajƒÖczkowski, 2010-01-14
11   *
12   * @since 0.9.13
13   */
14  public interface AbstractJoinPoint {
15  
16      /**
17       * Calls profiled method and returns its result.
18       *
19       * @return result of proceeding
20       * @throws Throwable thrown exception
21       */
22      public Object proceed() throws Throwable;
23  
24      /**
25       * Returns an object whose method was annotated (profiled).
26       *
27       * @return an object whose method was annotated
28       */
29      public Object getExecutingObject();
30  
31      /**
32       * Returns a parameters (arguments) array of processing method.
33       *
34       * @return array of parameters
35       */
36      public Object[] getParameters();
37  
38      /**
39       * Returns a processing method name.
40       *
41       * @return processing method name
42       */
43      public String getMethodName();
44  }