Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 2nd, 2011  |  syntax: None  |  size: 0.23 KB  |  views: 49  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. class A {
  2.  
  3. @AroundInvoke
  4. Object invoke(InvocationContext ctx) throws Exception {
  5.  
  6.  return ctx.proceed();
  7. }
  8.  
  9.  
  10. public void nonInterceptedMethod() {
  11.  
  12. }
  13.  
  14.  
  15. @Interceptors(A.class)
  16. public void interceptedMethod() {
  17.  
  18. }
  19.  
  20. }
  21.  
  22.  
clone this paste RAW Paste Data