Package net.xeoh.plugins.remotediscovery.options.discover

Examples of net.xeoh.plugins.remotediscovery.options.discover.OptionCallback


        p.exportPlugin(p2);
        System.out.println("exported to " + p2);

        RemoteDiscovery plugin = this.pm.getPlugin(RemoteDiscovery.class);
        //while(true) {
        Collection<DiscoveredPlugin> discover = plugin.discover(Plugin.class, new OptionCallback(new OptionCallback.Callback() {

            public void pluginsDiscovered(Collection<DiscoveredPlugin> plugins) {
                ArrayList<DiscoveredPlugin> test = new ArrayList<DiscoveredPlugin>(plugins);
                for (DiscoveredPlugin discoveredPlugin : test) {
                    System.out.println("Callback says: " + discoveredPlugin.getPublishURI() + " @" + discoveredPlugin.getDistance());
View Full Code Here

TOP

Related Classes of net.xeoh.plugins.remotediscovery.options.discover.OptionCallback

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.