private NamedMethodInfo toInfo(final NamedMethod method) { if (method == null) { return null; } final NamedMethodInfo info = new NamedMethodInfo(); info.methodName = method.getMethodName(); if (method.getMethodParams() != null) { info.methodParams = method.getMethodParams().getMethodParam(); } return info; }
public RemoveMethod(final java.lang.reflect.Method beanMethod, final boolean retainIfException) { this.beanMethod = new NamedMethod(beanMethod); this.retainIfException = retainIfException; }
public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final RemoveMethod that = (RemoveMethod) o; if (beanMethod != null ? !beanMethod.equals(that.beanMethod) : that.beanMethod != null) return false; return true; }
public MethodAttribute(final A attribute, final String ejbName, final NamedMethod method) { this.attribute = attribute; this.ejbName = ejbName; this.methodName = method.getMethodName(); this.methodParams = method.getMethodParams(); this.className = method.getClassName(); }
public LifecycleCallback(final NamedMethod method) { this.lifecycleCallbackClass = method.getClassName(); this.lifecycleCallbackMethod = method.getMethodName(); }
for (final Timer timer : timers) { final NamedMethod namedMethod = timer.getTimeoutMethod(); methodsConfiguredInDeploymentXml.add(namedMethod.getMethodName() + (namedMethod.getMethodParams() == null ? "" : Join.join("", namedMethod.getMethodParams().getMethodParam()))); timer.setSchedule(timerSchedule); timer.setTimeoutMethod(new NamedMethod(method.get()));
private void checkTimeOut(Class ejbClass, NamedMethod timeout, EnterpriseBean bean) { if (timeout == null) return; try { Method method = getMethod(ejbClass, timeout.getMethodName(), javax.ejb.Timer.class); Class<?> returnType = method.getReturnType(); if (!returnType.equals(Void.TYPE)) { fail(bean, "timeout.badReturnType", timeout.getMethodName(), returnType.getName()); } } catch (NoSuchMethodException e) { List<Method> possibleMethods = getMethods(ejbClass, timeout.getMethodName()); if (possibleMethods.size() == 0) { fail(bean, "timeout.missing", timeout.getMethodName()); } else if (possibleMethods.size() == 1) { fail(bean, "timeout.invalidArguments", timeout.getMethodName(), getParameters(possibleMethods.get(0))); } else { fail(bean, "timeout.missing.possibleTypo", timeout.getMethodName(), possibleMethods.size()); } } }
public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final NamedMethod that = (NamedMethod) o; if (methodName != null ? !methodName.equals(that.methodName) : that.methodName != null) return false; if (nullOrEmpty(this.methodParams) && nullOrEmpty(that.methodParams)) return true; if (methodParams != null ? !methodParams.equals(that.methodParams) : that.methodParams != null) return false; return true; }
public int hashCode() { return (beanMethod != null ? beanMethod.hashCode() : 0); } }
public MethodAttribute(A attribute, String ejbName, NamedMethod method) { this.attribute = attribute; this.ejbName = ejbName; this.methodName = method.getMethodName(); this.methodParams = method.getMethodParams(); this.className = method.getClassName(); }
for (final Timer timer : timers) { final NamedMethod namedMethod = timer.getTimeoutMethod(); methodsConfiguredInDeploymentXml.add(namedMethod.getMethodName() + (namedMethod.getMethodParams() == null ? "" : Join.join("", namedMethod.getMethodParams().getMethodParam()))); timer.setSchedule(timerSchedule); timer.setTimeoutMethod(new NamedMethod(method.get()));
public Map<String, List<MethodAttribute>> getExistingDeclarations() { final Map<String, List<MethodAttribute>> declarations = new HashMap<String, List<MethodAttribute>>(); final List<ConcurrentMethod> methods = bean.getConcurrentMethod(); for (final ConcurrentMethod method : methods) { List<MethodAttribute> list = declarations.get(method.getMethod().getMethodName()); if (list == null) { list = new ArrayList<MethodAttribute>(); declarations.put(method.getMethod().getMethodName(), list); } list.add(new MethodAttribute(null, bean.getEjbName(), method.getMethod())); } return declarations; }
public LifecycleCallback(final NamedMethod method) { this.lifecycleCallbackClass = method.getClassName(); this.lifecycleCallbackMethod = method.getMethodName(); }
public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final NamedMethod that = (NamedMethod) o; if (methodName != null ? !methodName.equals(that.methodName) : that.methodName != null) return false; if (nullOrEmpty(this.methodParams) && nullOrEmpty(that.methodParams)) return true; if (methodParams != null ? !methodParams.equals(that.methodParams) : that.methodParams != null) return false; return true; }
public int hashCode() { return (beanMethod != null ? beanMethod.hashCode() : 0); } }
public InitMethod(final java.lang.reflect.Method beanMethod) { this.beanMethod = new NamedMethod(beanMethod); }
private NamedMethodInfo toInfo(final NamedMethod method) { if (method == null) { return null; } final NamedMethodInfo info = new NamedMethodInfo(); info.methodName = method.getMethodName(); if (method.getMethodParams() != null) { info.methodParams = method.getMethodParams().getMethodParam(); } return info; }
public MethodAttribute(final A attribute, final String ejbName, final NamedMethod method) { this.attribute = attribute; this.ejbName = ejbName; this.methodName = method.getMethodName(); this.methodParams = method.getMethodParams(); this.className = method.getClassName(); }
public Map<String, List<MethodAttribute>> getExistingDeclarations() { final Map<String, List<MethodAttribute>> declarations = new HashMap<String, List<MethodAttribute>>(); final List<ConcurrentMethod> methods = bean.getConcurrentMethod(); for (final ConcurrentMethod method : methods) { List<MethodAttribute> list = declarations.get(method.getMethod().getMethodName()); if (list == null) { list = new ArrayList<MethodAttribute>(); declarations.put(method.getMethod().getMethodName(), list); } list.add(new MethodAttribute(null, bean.getEjbName(), method.getMethod())); } return declarations; }
public boolean equals(final Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; final NamedMethod that = (NamedMethod) o; if (methodName != null ? !methodName.equals(that.methodName) : that.methodName != null) return false; if (nullOrEmpty(this.methodParams) && nullOrEmpty(that.methodParams)) return true; if (methodParams != null ? !methodParams.equals(that.methodParams) : that.methodParams != null) return false; return true; }