Package org.jdesktop.wonderland.modules.avatarbase.client.registry.spi

Examples of org.jdesktop.wonderland.modules.avatarbase.client.registry.spi.AvatarFactorySPI


        }

        // For each, spawn a thread and kick off the loader for each of the
        // factory. We catch exceptions just in case.
        for (AvatarFactorySPI factory : factorySet) {
            final AvatarFactorySPI f = factory;
            logger.info("Loading avatar from factory " + f.getClass().getName());
            new Thread() {
                @Override
                public void run() {
                    try {
                        f.registerAvatars(manager);
                    } catch (java.lang.Exception excp) {
                        // Catch any and all exceptions and print a message to the log
                        logger.log(Level.WARNING, "Exception from avatar factory", excp);
                    } finally {
                        // Always remove the class from the set. When this set is empty
                        // the loading state will be made READY.
                        loadingComplete((Class<AvatarFactorySPI>) f.getClass());
                    }
                }
            }.start();
        }
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.avatarbase.client.registry.spi.AvatarFactorySPI

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.