1 7 package org.hibernate.ejb.callback; 8 9 import java.lang.reflect.Method ; 10 11 15 public class BeanCallback extends Callback { 16 public BeanCallback(Method callbackMethod) { 17 super( callbackMethod ); 18 } 19 20 public void invoke(Object bean) { 21 try { 22 callbackMethod.invoke( bean, new Object [0] ); 23 } 24 catch (Exception e) { 25 throw new RuntimeException ( e ); 26 } 27 } 28 29 30 } 31 | Popular Tags |