View Javadoc

1   /**
2    * 
3    */
4   package net.sf.crispy;
5   
6   /**
7    * This interface you can use to modify the return value from execute methode result.
8    * 
9    * @author Linke
10   *
11   */
12  public interface Modifier {
13  	
14  	/**
15  	 * Before invoke the method you can modify parameter and method.
16  	 * 
17  	 * @param pvInterceptorContext <code>InterceptorContext</code> with <code>Method</code> and parameter.
18  	 * @return Modify <code>InterceptorContext</code>.
19  	 */
20  	public InterceptorContext modifyBeforeInvocation (InterceptorContext pvInterceptorContext);
21  
22  	/**
23  	 * After invoke the method you can modify the result.
24  	 * 
25  	 * @param pvInterceptorContext <code>InterceptorContext</code> with result.
26  	 * @return Modify <code>InterceptorContext</code>.
27  	 */	
28  	public InterceptorContext modifyAfterInvocation (InterceptorContext pvInterceptorContext);
29  
30  }