Examples of invokeMethod()


Examples of org.drools.spring.pojorule.RuleReflectMethod.invokeMethod()

        MockControl controlRuleMethod_1 = newMockRuleMethod();
        RuleReflectMethod mockRuleMethod_1 = (RuleReflectMethod) controlRuleMethod_1.getMock();
        controlRuleMethod_1.expectAndReturn(mockRuleMethod_1.invokeMethod(mockTuple), null);
        MockControl controlRuleMethod_2 = newMockRuleMethod();
        RuleReflectMethod mockRuleMethod_2 = (RuleReflectMethod) controlRuleMethod_2.getMock();
        controlRuleMethod_2.expectAndReturn(mockRuleMethod_2.invokeMethod(mockTuple), null);
        RuleReflectMethod[] mockRuleMethods = new RuleReflectMethod[]{mockRuleMethod_1, mockRuleMethod_2};

        mocks.replay();

        PojoConsequence pojoConsequence = new PojoConsequence(mockRuleMethods);
View Full Code Here

Examples of org.exoplatform.services.rest.method.MethodInvoker.invokeMethod()

      // save resource in hierarchy
      context.addMatchedResource(resource);

      Class<?> returnType = rmd.getResponseType();
      MethodInvoker invoker = rmd.getMethodInvoker();
      Object o = invoker.invokeMethod(resource, rmd, context);
      processResponse(o, returnType, request, response, rmd.produces());
   }

   /**
    * Invoke sub-resource methods.
View Full Code Here

Examples of org.exoplatform.services.rest.method.MethodInvoker.invokeMethod()

      // map parameter's names to values
      context.setParameterNames(srmd.getUriPattern().getParameterNames());

      Class<?> returnType = srmd.getResponseType();
      MethodInvoker invoker = srmd.getMethodInvoker();
      Object o = invoker.invokeMethod(resource, srmd, context);
      processResponse(o, returnType, request, response, srmd.produces());
   }

   /**
    * Invoke sub-resource locators.
View Full Code Here

Examples of org.exoplatform.services.rest.method.MethodInvoker.invokeMethod()

      // map parameter's names to values
      context.setParameterNames(srld.getUriPattern().getParameterNames());

      // NOTE Locators can't accept entity
      MethodInvoker invoker = srld.getMethodInvoker();
      resource = invoker.invokeMethod(resource, srld, context);

      AbstractResourceDescriptor descriptor = new AbstractResourceDescriptorImpl(resource);
      SingletonObjectFactory<AbstractResourceDescriptor> locResource =
         new SingletonObjectFactory<AbstractResourceDescriptor>(descriptor, resource);
View Full Code Here

Examples of org.fcrepo.server.journal.entry.ConsumerJournalEntry.invokeMethod()

                }
                ConsumerJournalEntry cje = reader.readJournalEntry();
                if (cje == null) {
                    break;
                }
                cje.invokeMethod(delegate, recoveryLog);
                cje.close();
            }
            reader.shutdown();

            recoveryLog.log("Recovery complete.");
View Full Code Here

Examples of org.gradle.api.AntBuilder.invokeMethod()

            options.put("cache", dependencyCacheDir);
        }

        final AntBuilder ant = antBuilderFactory.create();
        ant.getProject().addTaskDefinition("gradleDepend", AntDepend.class);
        ant.invokeMethod("gradleDepend", new Object[]{options.build(), new Closure<Object>(this, this) {
            @SuppressWarnings("UnusedDeclaration")
            public void doCall(Object ignore) {
                getSource().addToAntBuilder(ant, "src", FileCollection.AntType.MatchingTask);
            }
        }});
View Full Code Here

Examples of org.gradle.api.internal.BeanDynamicObject.invokeMethod()

    public Object invokeMethod(String name, Object... arguments) {
        for (Object object : plugins.values()) {
            BeanDynamicObject dynamicObject = new BeanDynamicObject(object);
            if (dynamicObject.hasMethod(name, arguments)) {
                return dynamicObject.invokeMethod(name, arguments);
            }
        }
        throw new MissingMethodException(name, Convention.class, arguments);
    }
View Full Code Here

Examples of org.gradle.api.internal.DynamicObject.invokeMethod()

            if (dynamicObject.hasProperty(name)) {
                dynamicObject.setProperty(name, value);
            } else {
                try {
                    dynamicObject.invokeMethod(name, value);
                } catch (MissingMethodException e) {
                    dynamicObject.setProperty(name, value);
                }
            }
        }
View Full Code Here

Examples of org.hive.container.lib.Application.invokeMethod()

            LoggerFactory.getLogger().fatal(String.format("Can't load class %s.", request.getApplicationName()));
            return null;
        }

        // Invoke target method
        return application.invokeMethod(request.getMethodName(), request.getArgs().toArray());
    }

    /**
     * Returns the XML (JavaFX-compatible) of one of the application's pages
     * @param applicationName
View Full Code Here

Examples of org.netbeans.jemmy.ClassReference.invokeMethod()

          output.printStackTrace(e);
          return(false);
      }
        } else {
      try {
          value = disp.invokeMethod(propName, params[i], classes[i]);
      } catch(InvocationTargetException e) {
          output.printStackTrace(e);
          return(false);
      } catch(IllegalStateException e) {
          output.printStackTrace(e);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.