Examples of ModulePluginList


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

            logger.log(Level.SEVERE, null, ex);
        }
    }
   
    private ClassLoader setupClassLoader() {
        ModulePluginList list = ModuleUtils.fetchPluginJars();
        List<URL> urls = new ArrayList<URL>();
       
        for (String uri : list.getJarURIs()) {
            try {
                urls.add(new URL(uri));
            } catch (Exception excp) {
                excp.printStackTrace();
           }
View Full Code Here

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

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

                }
            }
        }
       
        /* 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
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.