Examples of CallbackInfo


Examples of org.apache.openejb.assembler.classic.CallbackInfo

        return info;
    }

    private void copyCallbacks(final List<? extends CallbackMethod> from, final List<CallbackInfo> to) {
        for (final CallbackMethod callback : from) {
            final CallbackInfo info = new CallbackInfo();
            info.className = callback.getClassName();
            info.method = callback.getMethodName();
            to.add(info);
        }
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.CallbackInfo

        return info;
    }

    private void copyCallbacks(List<? extends CallbackMethod> from, List<CallbackInfo> to) {
        for (CallbackMethod callback : from) {
            CallbackInfo info = new CallbackInfo();
            info.className = callback.getClassName();
            info.method = callback.getMethodName();
            to.add(info);
        }
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.CallbackInfo

        return info;
    }

    private void copyCallbacks(List<? extends CallbackMethod> from, List<CallbackInfo> to) {
        for (CallbackMethod callback : from) {
            CallbackInfo info = new CallbackInfo();
            info.className = callback.getClassName();
            info.method = callback.getMethodName();
            to.add(info);
        }
    }
View Full Code Here

Examples of org.apache.openejb.assembler.classic.CallbackInfo

        return info;
    }

    private void copyCallbacks(List<? extends CallbackMethod> from, List<CallbackInfo> to) {
        for (CallbackMethod callback : from) {
            CallbackInfo info = new CallbackInfo();
            info.className = callback.getClassName();
            info.method = callback.getMethodName();
            to.add(info);
        }
    }
View Full Code Here

Examples of org.jruby.ext.ffi.CallbackInfo

                default:
                    throw runtime.newTypeError("invalid callback parameter type " + type);
            }
       
        } else if (type instanceof CallbackInfo) {
            final CallbackInfo cbInfo = (CallbackInfo) type;
            final long address = buffer.getAddress(index);
           
            return address != 0
                ? new Function(runtime, cbInfo.getMetaClass(),
                    new CodeMemoryIO(runtime, address),
                    cbInfo.getReturnType(), cbInfo.getParameterTypes(),
                    cbInfo.isStdcall() ? CallingConvention.STDCALL : CallingConvention.DEFAULT, runtime.getNil())

                : runtime.getNil();

        } else if (type instanceof StructByValue) {
            StructByValue sbv = (StructByValue) type;
View Full Code Here

Examples of org.talend.esb.mep.requestcallback.feature.CallbackInfo

  private static URL asCallbackWsdlURL(URL wsdlURL) {
    if (wsdlURL == null) {
      return null;
    }
    final CallbackInfo cbInfo = CallContext.createCallbackInfo(wsdlURL);
    if (cbInfo.getCallbackServiceName() == null) {
      // old-style callback definition without callback service.
      return null;
    }
    String protocol = wsdlURL.getProtocol();
    if (!("http".equals(protocol) || "https".equals(protocol))) {
      // not a service registry query, return as it is.
      return wsdlURL;
    }
    final String path = wsdlURL.getPath();
    if (!path.startsWith("/services/registry/lookup/wsdl/")) {
      // not a service registry query, return as it is.
      return wsdlURL;
    }
    try {
      final String urlString = wsdlURL.toExternalForm();
      final String resString =  urlString.substring(0,
          urlString.indexOf(SR_QUERY_PATH) + SR_QUERY_PATH_LEN)
          + URLEncoder.encode(cbInfo.getCallbackServiceName().toString(), "UTF-8")
          + "?mergeWithPolicies=true&participant=provider";
      return new URL(resString);
    } catch (RuntimeException e) {
      throw e;
    } catch (Exception 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.