Package org.apache.cxf.service.invoker

Examples of org.apache.cxf.service.invoker.MethodDispatcher


    }
   
    @Deprecated
    protected void setOldMethodDispatcherProperty() {
        //Try adding the MethodDispatcher using the old interface
        MethodDispatcher md = getMethodDispatcher();
        if (getService().get("org.apache.cxf.frontend.MethodDispatcher") == null) {
            try {
                Class<?> cls = ClassLoaderUtils.loadClass("org.apache.cxf.frontend.MethodDispatcher",
                                                          getClass());
                Object o = Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(),
View Full Code Here


            throw new IllegalStateException("The client has been closed.");
        }

        Endpoint endpoint = getClient().getEndpoint();
        String address = endpoint.getEndpointInfo().getAddress();
        MethodDispatcher dispatcher = (MethodDispatcher)endpoint.getService().get(
                                                                                  MethodDispatcher.class
                                                                                      .getName());
        Object[] params = args;
        if (null == params) {
            params = new Object[0];
        }       
       
        BindingOperationInfo oi = dispatcher.getBindingOperation(method, endpoint);
        if (oi == null) {
            // check for method on BindingProvider and Object
            if (method.getDeclaringClass().equals(BindingProvider.class)
                || method.getDeclaringClass().equals(Object.class)
                || method.getDeclaringClass().equals(Closeable.class)) {
View Full Code Here

        }
        if (getDataBinding() != null) {
            getService().setDataBinding(getDataBinding());
        }

        MethodDispatcher m = getMethodDispatcher();
        getService().put(MethodDispatcher.class.getName(), m);
        createEndpoints();

        fillInSchemaCrossreferences();
View Full Code Here

            c.setServiceFactory(this);
        }
    }

    protected void setServiceProperties() {
        MethodDispatcher md = getMethodDispatcher();
        getService().put(MethodDispatcher.class.getName(), md);
        for (Class<?> c : md.getClass().getInterfaces()) {
            getService().put(c.getName(), md);
        }
        if (properties != null) {
            getService().putAll(properties);
        }
View Full Code Here

    }
   
    @Deprecated
    protected void setOldMethodDispatcherProperty() {
        //Try adding the MethodDispatcher using the old interface
        MethodDispatcher md = getMethodDispatcher();
        if (getService().get("org.apache.cxf.frontend.MethodDispatcher") == null) {
            try {
                Class<?> cls = ClassLoaderUtils.loadClass("org.apache.cxf.frontend.MethodDispatcher",
                                                          getClass());
                Object o = Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(),
View Full Code Here

        }
        if (getDataBinding() != null) {
            getService().setDataBinding(getDataBinding());
        }

        MethodDispatcher m = getMethodDispatcher();
        getService().put(MethodDispatcher.class.getName(), m);
        createEndpoints();

        fillInSchemaCrossreferences();
View Full Code Here

            c.setServiceFactory(this);
        }
    }

    protected void setServiceProperties() {
        MethodDispatcher md = getMethodDispatcher();
        getService().put(MethodDispatcher.class.getName(), md);
        for (Class<?> c : md.getClass().getInterfaces()) {
            getService().put(c.getName(), md);
        }
        if (properties != null) {
            getService().putAll(properties);
        }
View Full Code Here

    }
   
    @Deprecated
    protected void setOldMethodDispatcherProperty() {
        //Try adding the MethodDispatcher using the old interface
        MethodDispatcher md = getMethodDispatcher();
        if (getService().get("org.apache.cxf.frontend.MethodDispatcher") == null) {
            try {
                Class<?> cls = ClassLoaderUtils.loadClass("org.apache.cxf.frontend.MethodDispatcher",
                                                          getClass());
                Object o = Proxy.newProxyInstance(Thread.currentThread().getContextClassLoader(),
View Full Code Here

            throw new IllegalStateException("The client has been closed.");
        }

        Endpoint endpoint = getClient().getEndpoint();
        String address = endpoint.getEndpointInfo().getAddress();
        MethodDispatcher dispatcher = (MethodDispatcher)endpoint.getService().get(
                                                                                  MethodDispatcher.class
                                                                                      .getName());
        Object[] params = args;
        if (null == params) {
            params = new Object[0];
        }       
       
        BindingOperationInfo oi = dispatcher.getBindingOperation(method, endpoint);
        if (oi == null) {
            // check for method on BindingProvider and Object
            if (method.getDeclaringClass().equals(BindingProvider.class)
                || method.getDeclaringClass().equals(Object.class)
                || method.getDeclaringClass().equals(Closeable.class)) {
View Full Code Here

            throw new IllegalStateException("The client has been closed.");
        }

        Endpoint endpoint = getClient().getEndpoint();
        String address = endpoint.getEndpointInfo().getAddress();
        MethodDispatcher dispatcher = (MethodDispatcher)endpoint.getService().get(
                                                                                  MethodDispatcher.class
                                                                                      .getName());
        Object[] params = args;
        if (null == params) {
            params = new Object[0];
        }       
       
        BindingOperationInfo oi = dispatcher.getBindingOperation(method, endpoint);
        if (oi == null) {
            // check for method on BindingProvider and Object
            if (method.getDeclaringClass().equals(BindingProvider.class)
                || method.getDeclaringClass().equals(Object.class)
                || method.getDeclaringClass().equals(Closeable.class)) {
View Full Code Here

TOP

Related Classes of org.apache.cxf.service.invoker.MethodDispatcher

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.