Examples of AnnotationConfigApplicationContext


Examples of org.springframework.context.annotation.AnnotationConfigApplicationContext

 
  public static void main(String[] args)
  {
    PropertyConfigurator.configure(System
        .getProperty("log4j.configuration"));
    AbstractApplicationContext ctx = new AnnotationConfigApplicationContext(ZombieSpringConfig.class);
    // For the destroy method to work.
    ctx.registerShutdownHook();
   
    // Start the main game server
    ServerManager serverManager = ctx.getBean(ServerManager.class);
    //serverManager.startServers(18090,843,8081);
    try
    {
      serverManager.startServers();
    }
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.