Package org.jdesktop.wonderland.client

Examples of org.jdesktop.wonderland.client.ClientPlugin


        // classes, then initialize each one
        Iterator<ClientPlugin> it = loader.getAll(Plugin.class,
                                                  ClientPlugin.class);

        while (it.hasNext()) {
            ClientPlugin plugin = it.next();

            String message = BUNDLE.getString("Initialize plugin");
            message = MessageFormat.format(
                    message, plugin.getClass().getSimpleName());
            fireConnecting(message);

            // check with the filter to see if we should load this plugin
            if (LoginManager.getPluginFilter().shouldInitialize(this, plugin)) {
                try {
                    plugin.initialize(this);
                    plugins.add(plugin);
                } catch(Exception e) {
                    logger.log(Level.WARNING, "Error initializing plugin " +
                               plugin.getClass().getName(), e);
                } catch(Error e) {
                    logger.log(Level.WARNING, "Error initializing plugin " +
                               plugin.getClass().getName(), e);
                }
            }
        }
    }
View Full Code Here


       
        // load any client plugins from that class loader
        Iterator<ClientPlugin> it = Service.providers(ClientPlugin.class,
                                                      loader);
        while (it.hasNext()) {
            ClientPlugin plugin = it.next();
            plugin.initialize(session);
        }

        boundsPanel.setSession(session);
       
        localAvatar = session.getLocalAvatar();
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.ClientPlugin

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.