1 25 package org.objectweb.easybeans.tests.common.resources; 26 27 import org.objectweb.easybeans.tests.common.ejbs.base.EJBInjectionBean; 28 import org.objectweb.easybeans.tests.common.ejbs.base.ItfOneMethod01; 29 30 36 public class EJBInjectionInvocationMaker extends AbstractInvocationMaker { 37 38 41 private static final Class BEAN_CLASS = EJBInjectionBean.class; 42 43 46 private static final Class BEAN_INTERFACE = ItfOneMethod01.class; 47 48 51 private int timesInvocation; 52 53 57 public EJBInjectionInvocationMaker(final int timesInvocation) { 58 super(); 59 this.timesInvocation = timesInvocation; 60 } 61 62 68 @Override 69 public <E> void invokeMethod(final int n, final E bean) { 70 ItfOneMethod01 b = (ItfOneMethod01) bean; 71 b.getBool(); 72 } 73 74 77 @Override 78 public void run() { 79 try { 80 this.test(timesInvocation, BEAN_CLASS, BEAN_INTERFACE); 81 } catch (Exception e) { 82 throw new IllegalStateException ("Error.", e); 83 } 84 } 85 } 86 | Popular Tags |