Package com.almende.util.NamespaceUtil

Examples of com.almende.util.NamespaceUtil.CallTuple


    if (pushParams.has("onChange")
        && pushParams.get("onChange").booleanValue()) {
      AnnotatedClass ac = null;
      event = "change";
      try {
        final CallTuple res = NamespaceUtil.get(myAgent,
            pushParams.get("method").textValue());
       
        ac = AnnotationUtil.get(res.getDestination().getClass());
        for (final AnnotatedMethod method : ac
            .getMethods(res.getMethodName())) {
          final EventTriggered annotation = method
              .getAnnotation(EventTriggered.class);
          if (annotation != null) {
            // If no Event param, get it from annotation, else
            // use default.
View Full Code Here


  public static JSONResponse invoke(final Object destination,
      final JSONRequest request, final RequestParams requestParams,
      final JSONAuthorizor auth) {
    final JSONResponse resp = new JSONResponse(request.getId(), null);
    try {
      final CallTuple tuple = NamespaceUtil.get(destination,
          request.getMethod());
      final Object realDest = tuple.getDestination();
      final String realMethod = tuple.getMethodName();
     
      final AnnotatedMethod annotatedMethod = getMethod(realDest,
          realMethod, requestParams, auth);
      if (annotatedMethod == null) {
        throw new JSONRPCException(
View Full Code Here

      RequestParams requestParams, JSONAuthorizor auth) {
    JSONResponse resp = new JSONResponse();
    resp.setId(request.getId());
   
    try {
      CallTuple tuple = NamespaceUtil.get(destination,
          request.getMethod());
      Object realDest = tuple.getDestination();
      String realMethod = tuple.getMethodName();
     
      AnnotatedMethod annotatedMethod = getMethod(realDest, realMethod,
          requestParams, auth);
      if (annotatedMethod == null) {
        throw new JSONRPCException(
View Full Code Here

    if (pushParams.has("onChange")
        && pushParams.get("onChange").booleanValue()) {
      AnnotatedClass ac = null;
      event = "change";
      try {
        CallTuple res = NamespaceUtil.get(myAgent,
            pushParams.get("method").textValue());
       
        ac = AnnotationUtil.get(res.getDestination().getClass());
        for (AnnotatedMethod method : ac
            .getMethods(res.getMethodName())) {
          EventTriggered annotation = method
              .getAnnotation(EventTriggered.class);
          if (annotation != null) {
            // If no Event param, get it from annotation, else
            // use default.
View Full Code Here

  public static JSONResponse invoke(final Object destination,
      final JSONRequest request, final RequestParams requestParams,
      final JSONAuthorizor auth) {
    final JSONResponse resp = new JSONResponse(request.getId(), null);
    try {
      final CallTuple tuple = NamespaceUtil.get(destination,
          request.getMethod());
      final Object realDest = tuple.getDestination();
      final String realMethod = tuple.getMethodName();
     
      final AnnotatedMethod annotatedMethod = getMethod(realDest,
          realMethod, requestParams, auth);
      if (annotatedMethod == null) {
        throw new JSONRPCException(
View Full Code Here

TOP

Related Classes of com.almende.util.NamespaceUtil.CallTuple

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.