1 22 package org.jboss.kernel.plugins.dependency; 23 24 import java.security.PrivilegedExceptionAction ; 25 26 import org.jboss.joinpoint.spi.Joinpoint; 27 28 34 class DispatchJoinPoint implements PrivilegedExceptionAction <Object > 35 { 36 private Joinpoint joinpoint; 37 38 public DispatchJoinPoint(Joinpoint joinpoint) 39 { 40 this.joinpoint = joinpoint; 41 } 42 43 public Object run() throws Exception 44 { 45 try 46 { 47 return joinpoint.dispatch(); 48 } 49 catch (RuntimeException e) 50 { 51 throw e; 52 } 53 catch (Exception e) 54 { 55 throw e; 56 } 57 catch (Error e) 58 { 59 throw e; 60 } 61 catch (Throwable t) 62 { 63 throw new RuntimeException (t); 64 } 65 } 66 } | Popular Tags |