Examples of invoke()


Examples of org.apache.cxf.jaxrs.JAXRSInvoker.invoke()

        Exchange exc = new ExchangeImpl();
        exc.put(Endpoint.class, server.getEndpoint());
        Message inMessage = new MessageImpl();
        exc.setInMessage(inMessage);
        exc.put(OperationResourceInfo.class, ori);
        invoker.invoke(exc, Collections.emptyList(), customer);
    }
   
    @Test
    public void testSelectBetweenMultipleResourceClasses2() throws Exception {
        JAXRSServiceFactoryBean sf = new JAXRSServiceFactoryBean();
View Full Code Here

Examples of org.apache.cxf.jaxrs.client.WebClient.invoke()

        setupClientQueryAndHeaders(client, exchange);
       
        // invoke the client
        Object response = null;
        if (responseClass == null || Response.class.equals(responseClass)) {
            response = client.invoke(httpMethod, body);
        } else {
            if (Collection.class.isAssignableFrom(responseClass)) {
                if (genericType instanceof ParameterizedType) {
                    // Get the collection member type first
                    Type[] actualTypeArguments = ((ParameterizedType) genericType).getActualTypeArguments();
View Full Code Here

Examples of org.apache.cxf.jca.cxf.CXFInvocationHandler.invoke()

        Object[] args = new Object[0];
               
        CXFInvocationHandler handler = getHandler();
        handler.setNext(mockHandler);
       
        handler.invoke(target, testMethod, args);       
            
        assertTrue("target object must not be called", !target.methodInvoked);
    }

    public void testTargetAttribute() {
View Full Code Here

Examples of org.apache.cxf.service.invoker.Invoker.invoke()

        Runnable invocation = new Runnable() {

            public void run() {
                Exchange runableEx = message.getExchange();
                Object result = invoker.invoke(runableEx, getInvokee(message));
                if (!exchange.isOneWay()) {
                    Endpoint ep = exchange.get(Endpoint.class);
                   
                    Message outMessage = runableEx.getOutMessage();
                    if (outMessage == null) {
View Full Code Here

Examples of org.apache.felix.ipojo.util.Property.invoke()

     */
    public void onCreation(Object instance) {
        for (int i = 0; i < m_configurableProperties.size(); i++) {
            Property prop = (Property) m_configurableProperties.get(i);
            if (prop.hasMethod()) {
                prop.invoke(instance);
            }
        }

        try {
            notifyUpdated(instance);
View Full Code Here

Examples of org.apache.felix.scr.impl.helper.ModifiedMethod.invoke()

        ModifiedMethod modifiedMethod = getComponentMethods().getModifiedMethod();
        MethodResult result = MethodResult.VOID;
        for ( ComponentContextImpl<S> componentContext : getComponentContexts() )
        {
            S instance = componentContext.getImplementationObject(true);
            result = modifiedMethod.invoke( instance,
                    new ActivatorParameter( componentContext, -1 ), MethodResult.VOID, this );

        }
        return result;
    }
View Full Code Here

Examples of org.apache.flex.forks.velocity.util.introspection.VelMethod.invoke()

             *  as long as things are peachy, we can return an empty
             *  String so ASTReference() correctly figures out that
             *  all is well.
             */

            Object obj = method.invoke(o, params);
           
            if (obj == null)
            {
                if( method.getReturnType() == Void.TYPE)
                     return new String("");
View Full Code Here

Examples of org.apache.flex.forks.velocity.util.introspection.VelPropertyGet.invoke()

         *  now try and execute.  If we get a MIE, throw that
         *  as the app wants to get these.  If not, log and punt.
         */
        try
        {
            return vg.invoke(o);
        }
        catch(InvocationTargetException ite)
        {
            EventCartridge ec = context.getEventCartridge();

View Full Code Here

Examples of org.apache.flex.forks.velocity.util.introspection.VelPropertySet.invoke()

                            value, uberInfo);

            if (vs == null)
                return false;

            vs.invoke(result, value);
        }
        catch(InvocationTargetException ite)
        {
            /*
             *  this is possible
View Full Code Here

Examples of org.apache.geronimo.axis.server.AxisWebServiceContainer.invoke()

                    "127.0.0.1");
           
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            AxisResponse res = new AxisResponse("text/xml; charset=utf-8", "127.0.0.1", null, null, 8080, out);
            req.setAttribute(WebServiceContainer.POJO_INSTANCE, pojoClass.newInstance());
            container.invoke(req, res);
           
            out.flush();
            log.debug(new String(out.toByteArray()));
        } finally {
            if (in != null) {
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.