Examples of ProxyAdapterPeripheral


Examples of openperipheral.adapter.peripheral.ProxyAdapterPeripheral

    if (proxied.isEmpty()) return new AdapterPeripheral(methods, target);

    Set<Class<?>> allImplemented = Sets.newHashSet(proxied);
    allImplemented.add(IPeripheral.class);

    InvocationHandler handler = new ProxyAdapterPeripheral(methods, target);

    Class<?>[] interfaces = allImplemented.toArray(new Class<?>[allImplemented.size()]);

    return (IPeripheral)Proxy.newProxyInstance(targetClass.getClassLoader(), interfaces, handler);
  }
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.