Examples of invoke()


Examples of net.jini.jeri.BasicInvocationHandler.invoke()

            handler = new BasicInvocationHandler(oe,serverConstraints);
            Method m = RemoteMethodControl.class.getMethod(
                "setConstraints",new Class[] {MethodConstraints.class});
            try {
                handler.invoke(new Object(),m,new Object[] {clientConstraints});
                assertion(false);
            } catch (Exception ignore) {
            }

        } catch (Throwable t) {
View Full Code Here

Examples of net.oauth.client.OAuthClient.invoke()

    }
    OAuthAccessor accessor = createOAuthAccessor();
    accessor.tokenSecret = props.getProperty("tokenSecret");
    OAuthClient client = new OAuthClient(
        new HttpClient4(new SingleClient()));
    return client.invoke(accessor, "GET", url, params);
  }

  public String prepareOAuthHeaderForAccesingResources(Properties props,
      String method, String resource, String updateStatus)
      throws Exception {
View Full Code Here

Examples of net.rim.device.api.script.ScriptableFunction.invoke()

        // send JSON object to JavaScript function provided as the call back function parameter to the register_ndef function
        ScriptableFunction ndef_callback = _registry.getNdefFunction(typeNameFormat,record_type);
        if (ndef_callback != null) {
            try {
                Object[] args = new Object[] { json_ndef_message };
                ndef_callback.invoke(null, args);
            } catch (Exception e) {
                log("Could not dispatch message",typeNameFormat,record_type,json_ndef_message,e);
            }
        } else {
            log("No listener registered for message", typeNameFormat,
View Full Code Here

Examples of net.sf.cglib.core.CodeEmitter.invoke()

/*    */
/*    */   protected void init() {
/* 43 */     if (!TypeUtils.isInterface(getAccess())) {
/* 44 */       CodeEmitter e = getStaticHook();
/* 45 */       EmitUtils.load_class_this(e);
/* 46 */       e.invoke(this.info);
/*    */     }
/*    */   }
/*    */ }

/* Location:           /home/mnovotny/projects/EMBEDDED_JBOSS_BETA3_COMMUNITY/embedded/output/lib/embedded-jboss/lib/thirdparty-all.jar
View Full Code Here

Examples of net.sf.cglib.proxy.MethodProxy.invoke()

    public void should_delegate_method_call_to_the_target() throws Throwable {
        //Given
        PropertyMeta propertyMeta = completeBean(Void.class, String.class).propertyName("name").accessors()
                .type(PropertyType.SIMPLE).build();
        MethodProxy proxy = mock(MethodProxy.class);
        when(proxy.invoke(target, args)).thenReturn("name");

        //When
        Object name = interceptor.intercept(target, propertyMeta.getGetter(), args, proxy);

        //Then
View Full Code Here

Examples of net.sf.cglib.reflect.FastClass.invoke()

        if (view != null) {
            return view;
        }

        FastClass actionFastClass = controllerDb.getFastClass(actionControllerClass);
        Object entity = actionFastClass.invoke(actionSignature.fastIndex(), actionController, args);
        View marshalledEntity = actionSignature.marshall(entity);
        view = marshalledEntity;
        logger.debug("invoked " + actionSignature.methodName() + " for " + actionControllerClass.getName());

        View afterActionView = invokeAfterActionIfRequired(actionController, actionAnnotations,
View Full Code Here

Examples of net.sf.cglib.reflect.FastMethod.invoke()

        this.methodInvoker = new MethodInvoker() {
          public Object invoke(Object target, Object... parameters)
          throws IllegalAccessException, InvocationTargetException {
            Objects.assertNoNulls(parameters);
            return fastMethod.invoke(target, parameters);
          }
        };
      }

      Type[] parameterTypes = method.getGenericParameterTypes();
View Full Code Here

Examples of net.sf.hajdbc.invocation.InvocationStrategy.invoke()

         
          try
          {
            InvocationStrategy durabilityStrategy = LocalTransactionContext.this.durability.getInvocationStrategy(strategy, Durability.Phase.COMMIT, LocalTransactionContext.this.transactionId);
           
            return durabilityStrategy.invoke(proxy, invoker);
          }
          finally
          {
            LocalTransactionContext.this.unlock();
          }
View Full Code Here

Examples of net.sf.isolation.bean.IsoBeanPropertyManager.invoke()

  public void copy(final Object sourceBean, final Object targetBean) {
    final IsoLog log = context.getInstance(IsoLog.class);
    final IsoBeanPropertyManager propertyManager = context
        .getInstance(IsoBeanPropertyManager.class);
    propertyManager.invoke(targetBean, new IsoSetterCallback() {
      private Object value;

      public boolean execute(String propertyName, Class<?> type) {
        try {
          Object value = propertyManager.getProperty(sourceBean,
View Full Code Here

Examples of net.sf.rej.gui.dialog.ClassChooseDialog.invoke()

      addButton.setText("+");
      addButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
                ClassIndex cpIndex = SystemFacade.getInstance().getClassIndex();
                ClassChooseDialog ccd = new ClassChooseDialog(MainWindow.getInstance(), cpIndex);
                ccd.invoke();
                ClassLocator cl = ccd.getSelected();
                if (cl != null) {
                    ClassEditor.this.interfaceModel.addElement(cl.getFullName());
                    ClassEditor.this.interfaceList.setSelectedValue(cl.getFullName(), true);
                }
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.