Package realityshard.container

Examples of realityshard.container.ContainerFacade


        factories.add(new LoginShardFactory());
        factories.add(new MapShardFactory());
       
       
        // finall create the container and hope it initializes itself without errors...
        final ContainerFacade container;
       
        try
        {
            container = new ContainerFacade(factories);
        }
        catch (Exception ex)
        {
            logger.error("Container failed to start up.", ex);
            System.exit(0);
            return;
        }
       
        // what happens when the server is shut down?
        Runtime.getRuntime().addShutdownHook(new Thread()
            {
                @Override
                public void run()
                {
                    container.shutdown();
                }
            });
    }
View Full Code Here

TOP

Related Classes of realityshard.container.ContainerFacade

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.