Package net.xeoh.plugins.remote

Examples of net.xeoh.plugins.remote.RemoteAPI


    public void testGetPluginClassOfP() {
       

        Assert.assertNotNull("Pluginmanager must be there", this.pm);

        RemoteAPI plugin = this.pm.getPlugin(RemoteAPI.class);

        Assert.assertNull("Plugin must not be there at this point", plugin);

        this.pm.addPluginsFrom(ClassURI.CLASSPATH);
       
View Full Code Here


    @Test
    public void testGetPluginClassOfP() {

        Assert.assertNotNull("Pluginmanager must be there", this.pm);

        RemoteAPI plugin = this.pm.getPlugin(RemoteAPI.class);
        Assert.assertNull("Plugin must not be there at this point", plugin);

        try {
            this.pm.addPluginsFrom(new URI("classpath://*"));
        } catch (URISyntaxException e) {
View Full Code Here

        PluginManager pm = PluginManagerFactory.createPluginManager(props);
        pm.addPluginsFrom(new URI("classpath://*"));

        TestAnnotations plugin = pm.getPlugin(TestAnnotations.class);
        RemoteAPI remote = pm.getPlugin(RemoteAPI.class, new OptionPluginSelector<RemoteAPI>(new PluginSelector<RemoteAPI>() {

            public boolean selectPlugin(final RemoteAPI p) {
                if (p.getPublishMethod().equals(PublishMethod.JSON)) return true;
                return false;
            }

        }));

        ExportResult exportPlugin = remote.exportPlugin(plugin);
        Collection<URI> exportURIs = exportPlugin.getExportURIs();
        for (URI uri : exportURIs) {
            System.out.println(uri);
        }
       
View Full Code Here

TOP

Related Classes of net.xeoh.plugins.remote.RemoteAPI

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.