congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
Wrapper.getWrapper
Code IndexAdd Tabnine to your IDE (free)

How to use
getWrapper
method
in
net.jahhan.com.alibaba.dubbo.common.bytecode.Wrapper

Best Java code snippets using net.jahhan.com.alibaba.dubbo.common.bytecode.Wrapper.getWrapper (Showing top 4 results out of 315)

origin: net.jahhan/dubbo-rpc-api

public <T> Invoker<T> getInvoker(T proxy, Class<T> type, URL url) {
  // TODO Wrapper类不能正确处理带$的类名
  final Wrapper wrapper = Wrapper.getWrapper(proxy.getClass().getName().indexOf('$') < 0 ? proxy.getClass() : type);
  return new AbstractProxyInvoker<T>(proxy, type, url) {
    @Override
    protected Object doInvoke(T proxy, String methodName, 
                 Class<?>[] parameterTypes, 
                 Object[] arguments) throws Throwable {
      return wrapper.invokeMethod(proxy, methodName, parameterTypes, arguments);
    }
  };
}
origin: net.jahhan/dubbo-rpc-default

params.put(Constants.METHODS_KEY, StringUtils.join(Wrapper.getWrapper(clazz).getDeclaredMethodNames(), ","));
origin: net.jahhan/dubbo-rpc-api

if (url.getParameter(Constants.STUB_EVENT_KEY, Constants.DEFAULT_STUB_EVENT)) {
  url = url.addParameter(Constants.STUB_EVENT_METHODS_KEY, StringUtils
      .join(Wrapper.getWrapper(proxy.getClass()).getDeclaredMethodNames(), ","));
  url = url.addParameter(Constants.IS_SERVER_KEY, Boolean.FALSE.toString());
  try {
origin: net.jahhan/dubbo-registry-default

  private static URL getRegistryURL(URL url) {
    return url.setPath(RegistryService.class.getName())
        .removeParameter(Constants.EXPORT_KEY).removeParameter(Constants.REFER_KEY)
        .addParameter(Constants.INTERFACE_KEY, RegistryService.class.getName())
        .addParameter(Constants.CLUSTER_STICKY_KEY, "true")
        .addParameter(Constants.LAZY_CONNECT_KEY, "true")
        .addParameter(Constants.RECONNECT_KEY, "false")
        .addParameterIfAbsent(Constants.TIMEOUT_KEY, "10000")
        .addParameterIfAbsent(Constants.CALLBACK_INSTANCES_LIMIT_KEY, "10000")
        .addParameterIfAbsent(Constants.CONNECT_TIMEOUT_KEY, "10000")
        .addParameter(Constants.METHODS_KEY, StringUtils.join(new HashSet<String>(Arrays.asList(Wrapper.getWrapper(RegistryService.class).getDeclaredMethodNames())), ","))
        //.addParameter(Constants.STUB_KEY, RegistryServiceStub.class.getName())
        //.addParameter(Constants.STUB_EVENT_KEY, Boolean.TRUE.toString()) //for event dispatch
        //.addParameter(Constants.ON_DISCONNECT_KEY, "disconnect")
        .addParameter("subscribe.1.callback", "true")
        .addParameter("unsubscribe.1.callback", "false");
  }
}
net.jahhan.com.alibaba.dubbo.common.bytecodeWrappergetWrapper

Javadoc

get wrapper.

Popular methods of Wrapper

  • getDeclaredMethodNames
    get method name array.
  • arg
  • args
  • getMethodNames
    get method name array.
  • getPropertyValue
    get property value.
  • hasMethods
  • invokeMethod
    invoke method.
  • makeWrapper
  • propertyName
  • setPropertyValue
    set property value.

Popular in Java

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • 14 Best Plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now