Package org.socialmusicdiscovery.server.api.plugin

Examples of org.socialmusicdiscovery.server.api.plugin.PluginException


        browseServiceManager.addBrowseService(SpotifyTrack.class.getSimpleName(), SpotifyTrackBrowseService.class, getConfiguration());

        try {
            browseMenuManager.loadMenusFromXml(getClass().getResourceAsStream("/org/socialmusicdiscovery/server/plugins/mediaimport/spotify/spotify-menus.xml"));
        } catch (IOException e) {
            throw new PluginException(e);
        } catch (ParsingException e) {
            throw new PluginException(e);
        }

        return true;
    }
View Full Code Here


        System.out.println("Starting grizzly...");
        URI uri = UriBuilder.fromUri("http://0.0.0.0/").port(Integer.parseInt(serverPort)).build();
        try {
            threadSelector = GrizzlyWebContainerFactory.create(uri, initParams);
        } catch (IOException e) {
            throw new PluginException(e);
        }
        System.out.println(String.format("Try out %sapplication.wadl", uri));
        return true;
    }
View Full Code Here

            if (database != null && (database.endsWith("-test"))) {
                execute(connection);
            }
        } catch (SQLException e) {
            e.printStackTrace();
            throw new PluginException(getClass().getSimpleName() + " failure", e);
        }
        return false;
    }
View Full Code Here

                    ClassLoaderResourceAccessor(),
                    new JdbcConnection(connection));
            liquibase.update("");
        } catch (LiquibaseException e) {
            e.printStackTrace();
            throw new PluginException(getClass().getSimpleName() + " failure", e);
        }
    }
View Full Code Here

        try {
            browseMenuManager.loadMenusFromXml(getClass().getResourceAsStream("/org/socialmusicdiscovery/server/plugins/mediaimport/lastfm/lastfm-menus.xml"));
            browseMenuManager.loadMenusFromXml(getClass().getResourceAsStream("/org/socialmusicdiscovery/server/plugins/mediaimport/lastfm/lastfm-experimental-menus.xml"));
        } catch (IOException e) {
            throw new PluginException(e);
        } catch (ParsingException e) {
            throw new PluginException(e);
        }
        return true;
    }
View Full Code Here

TOP

Related Classes of org.socialmusicdiscovery.server.api.plugin.PluginException

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.