/** * Checks if this agent can hibernate. * * @return true, if this agent can hibernate */ public boolean isCanHibernate() { if (this.has("canHibernate")) { return this.get("canHibernate").asBoolean(); } AnnotatedClass ac = null; String className = this.getClassName(); if (className != null) { try { ac = AnnotationUtil.get(Class.forName(className)); } catch (ClassNotFoundException e) { LOG.log(Level.WARNING, "Couldn't load agent class", e); } } return (ac != null && ac.getAnnotation(CanHibernate.class) != null); }
.getClass()); final List<AnnotatedMethod> methods = newClazz .getMethods(reducedMethod); if (!methods.isEmpty()) { result.setMethod(methods.get(0));
for (final AnnotatedMethod method : annotatedClass.getMethods()) { if (isAvailable(method, null, requestParams, auth)) { namespace = annotatedClass.getAnnotation( Namespace.class).value(); .getAnnotatedMethods(Namespace.class)) { final String innerNamespace = method.getAnnotation( Namespace.class).value();
.getActualMethod().getDeclaringClass()).getAnnotation( Access.class); if (methodAccess == null) {
if (clazz != null) { List<AnnotatedMethod> list = clazz .getMethods(method.getName()); for (AnnotatedMethod m : list) { if (m.getAnnotation(NoReply.class) != null) { && method.getReturnType().equals( void.class) && clazz.getAnnotation(NoReply.class) != null) { doSync = false;
final AnnotatedClass clazz = AnnotationUtil.get(destination.getClass()); for (final AnnotatedMethod method : clazz .getAnnotatedMethods(Namespace.class)) { String namespace = method.getAnnotation(Namespace.class).value(); final Object newDest = method.getActualMethod().invoke(destination, final AnnotatedClass destClazz = AnnotationUtil.get(newDest .getClass()); namespace = destClazz.getAnnotation(Namespace.class) .value(); } else {
ac = AnnotationUtil.get(c); if (ac != null) { for (final AnnotatedMethod method : ac.getMethods()) { final boolean available = isAvailable(method, null, requestParams, null);