private MethodDescriptor processTimeoutMethod(EjbDescriptor ejb, MethodDescriptor timeoutMethodDescOrig, AnnotationTypesProvider provider, Class ejbClass) throws ClassNotFoundException { Method m = timeoutMethodDescOrig.getDeclaredMethod(ejb); if (m == null) { // In case deployment descriptor didn't specify "javax.ejb.Timer" // as the method-params, and we were not relying on it before, // check explicitly for a method with "javax.ejb.Timer" param type. Class[] params = new Class[1]; if (provider!=null) { params[0] = provider.getType("javax.ejb.Timer"); } else { throw new RuntimeException("Cannot find AnnotationTypesProvider named 'EJB'"); } m = timeoutMethodDescOrig.getDeclaredMethod(ejb, params); } if (m == null) { throw new RuntimeException("Class " + ejbClass.getName() + " does not define timeout method " + timeoutMethodDescOrig.getFormattedString()); } return new MethodDescriptor(m, MethodDescriptor.TIMER_METHOD); } }
private MethodDescriptor processTimeoutMethod(EjbDescriptor ejb, MethodDescriptor timeoutMethodDescOrig, AnnotationTypesProvider provider, Class ejbClass) throws ClassNotFoundException { Method m = timeoutMethodDescOrig.getDeclaredMethod(ejb); if (m == null) { // In case deployment descriptor didn't specify "javax.ejb.Timer" // as the method-params, and we were not relying on it before, // check explicitly for a method with "javax.ejb.Timer" param type. Class[] params = new Class[1]; if (provider!=null) { params[0] = provider.getType("javax.ejb.Timer"); } else { throw new RuntimeException("Cannot find AnnotationTypesProvider named 'EJB'"); } m = timeoutMethodDescOrig.getDeclaredMethod(ejb, params); } if (m == null) { throw new RuntimeException("Class " + ejbClass.getName() + " does not define timeout method " + timeoutMethodDescOrig.getFormattedString()); } return new MethodDescriptor(m, MethodDescriptor.EJB_BEAN); } }
logger.finest(" "+md.getFormattedString()); ram.add(bundle.getName() + ":" + ejb.getEjbClassName() + "." + md.getFormattedString()); ram.add(bundle.getName() + ":" + ejb.getEjbClassName() + "." + md.getFormattedString());
logger.finest(" "+md.getFormattedString()); ram.add(bundle.getName() + ":" + ejb.getEjbClassName() + "." + md.getFormattedString()); ram.add(bundle.getName() + ":" + ejb.getEjbClassName() + "." + md.getFormattedString());
} catch (Exception e) { throw new RuntimeException(ejb.getName() + ": Invalid schedule " + "defined on method " + sd.getTimeoutMethod().getFormattedString() + ": " + e.getMessage());
" does not define timeout method " + schd.getTimeoutMethod().getFormattedString());
"ejb.no_timeout_method", "Class {0} does not define timeout method {1}", ejbClass.getName(), schd.getTimeoutMethod().getFormattedString()));
} catch (Exception e) { throw new RuntimeException(ejb.getName() + ": Invalid schedule " + " defined on method " + sd.getTimeoutMethod().getFormattedString() + ": " + e.getMessage());