Package org.jdesktop.wonderland.common.modules

Examples of org.jdesktop.wonderland.common.modules.ModulePluginList


     */
    private ScannedClassLoader setupClassLoader(String serverURL) {
        fireConnecting(BUNDLE.getString("Creating classloader"));

        // TODO: use the serverURL
        ModulePluginList list = ModuleUtils.fetchPluginJars(serverURL);
        List<URL> urls = new ArrayList<URL>();
        if (list == null) {
            logger.warning("Unable to configure classlaoder, falling back to " +
                           "system classloader");
            return new ScannedClassLoader(new URL[0],
                                          getClass().getClassLoader());
        }

        for (JarURI uri : list.getJarURIs()) {
            try {
                // check the filter to see if we should add this URI
                if (LoginManager.getPluginFilter().shouldDownload(this, uri)) {
                    urls.add(uri.toURL());
                }
View Full Code Here


                }
            }
        }
       
        /* Otherwise, return a response with the input stream */
        ModulePluginList mpl = new ModulePluginList();
        mpl.setJarURIs(jarURIs.toArray(new JarURI[] {}));

        /* Write the XML encoding to a writer and return it2 */
        StringWriter sw = new StringWriter();
        try {
            mpl.encode(sw);
            ResponseBuilder rb = Response.ok(sw.toString());
            return rb.build();
        } catch (javax.xml.bind.JAXBException excp) {
            /* Log an error and return an error response */
            logger.log(Level.WARNING, "[MODULES] GET PLUGINS Unable to encode", excp);
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.common.modules.ModulePluginList

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.