Examples of invoke()


Examples of org.codehaus.xfire.handler.HandlerPipeline.invoke()

            HandlerPipeline inPipe = new HandlerPipeline(contextClient.getXFire().getInPhases());
            inPipe.addHandlers(contextClient.getInHandlers());
            inPipe.addHandlers(contextClient.getTransport().getInHandlers());
            context.setInPipeline(inPipe);
           
            inPipe.invoke(context);
        }
        catch (Exception e1)
        {
            XFireFault fault = XFireFault.createFault(e1);
           
View Full Code Here

Examples of org.codehaus.xfire.service.invoker.Invoker.invoke()

        assertNotNull(invoker);

        Method method = DummyServiceThatCounts.class.getMethod("theMethod", new Class[] {});
        assertNotNull(method);

        invoker.invoke(method, new Object[] {}, null);
        invoker.invoke(method, new Object[] {}, null);
        invoker.invoke(method, new Object[] {}, null);

        // Assert it
        assertEquals(1, instanceCount);
View Full Code Here

Examples of org.cojen.classfile.CodeBuilder.invoke()

            if (bp.getType().isPrimitive()) {
                continue;
            }

            b.loadLocal(beanVar);
            b.invoke(bp.getReadMethod());

            Label noMatch = b.createLabel();
            b.ifNullBranch(noMatch, false);
            b.loadConstant(true);
            b.returnValue(TypeDesc.BOOLEAN);
View Full Code Here

Examples of org.crsh.shell.impl.command.spi.CommandInvoker.invoke()

                        Exception ex = new Exception("Was not expecting response " + shellResponse.response);
                        throw new CommandException(ErrorKind.EVALUATION, "Failure when evaluating '" + request + "'  in script " + name, ex);
                      } else if (response instanceof ReplResponse.Invoke) {
                        ReplResponse.Invoke invokeResponse = (ReplResponse.Invoke)response;
                        CommandInvoker invoker =  invokeResponse.invoker;
                        invoker.invoke(consumer);
                      }
                    }

                    //
                    try {
View Full Code Here

Examples of org.datanucleus.store.rdbms.sql.expression.CollectionLiteral.invoke()

            if (lit.getValue() == null)
            {
                return new NullLiteral(stmt, null, null, null);
            }

            return lit.invoke("get", args);
        }
        else
        {
            if (stmt.getQueryGenerator().getCompilationComponent() == CompilationComponent.FILTER)
            {
View Full Code Here

Examples of org.datanucleus.store.rdbms.sql.expression.StringExpression.invoke()

        }

        StringExpression strExpr1 = (StringExpression)expr;
        StringExpression strExpr2 = (StringExpression)args.get(0);
        SQLExpression str1Upper = strExpr1.invoke("toUpperCase", null);
        SQLExpression str2Upper = strExpr2.invoke("toUpperCase", null);
        return str1Upper.eq(str2Upper);
    }
}
View Full Code Here

Examples of org.drools.spi.Consequence.invoke()

        DefaultConfiguration consequenceConfiguration = new DefaultConfiguration( "test" + testNumber );
        consequenceConfiguration.setText( (String) tests.get( testNumber ) );
        Consequence consequence = consequenceFactory.newConsequence( rule,
                                                                     this.ruleBaseContext,
                                                                     consequenceConfiguration );
        consequence.invoke( tuple );
    }

    public static boolean conditionExceptionTest() throws Exception
    {
        throw new Exception( "this is a condition exception" );
View Full Code Here

Examples of org.drools.spring.pojorule.PojoConsequence.invoke()

        mocks.replay();

        PojoConsequence pojoConsequence = new PojoConsequence(mockRuleMethods);
        try {
            pojoConsequence.invoke(mockTuple);
            fail( "Expected ConsequenceException" );
        }
        catch (ConsequenceException e) {
            // expected
        }
View Full Code Here

Examples of org.easymock.internal.ObjectMethodsFilter.invoke()

    // superclasses' name. This is needed for the class extension.
    @Test
    public void toStringForClasses() throws Throwable {
        final ObjectMethodsFilter filter = new ObjectMethodsFilter(Object.class, null, null);
        final Method toString = Object.class.getMethod("toString", new Class[0]);
        assertEquals("EasyMock for " + MockedClass.class.toString(), filter.invoke(new DummyProxy(),
                toString, new Object[0]));
    }

}
View Full Code Here

Examples of org.eclipse.emf.mwe.utils.DirectoryCleaner.invoke()

        /*
         * Execute Reader and Generators
         */
        reader.invoke(ctx, monitor, issues);
        cleaner.invoke(ctx, monitor, issues);
        databaseGen.invoke(ctx, monitor, issues);
        contentProviderGen.invoke(ctx, monitor, issues);
        modelGen.invoke(ctx, monitor, issues);
        snippetGen.invoke(ctx, monitor, issues);
    }
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.