Clover coverage report - Replica - 1.0-Alpha
Coverage timestamp: Dom Fev 1 2004 17:00:58 WET
file stats: LOC: 40   Methods: 1
NCLOC: 16   Classes: 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
 
 Source file Conditionals Statements Methods TOTAL
Startup.java 0% 0% 0% 0%
coverage
 1   
 /*
 2   
  * Replica is published under the terms
 3   
  * of the Apache Software License.
 4   
  */
 5   
 package replica.server;
 6   
 
 7   
 import org.springframework.context.support.FileSystemXmlApplicationContext;
 8   
 import org.springframework.context.support.StaticApplicationContext;
 9   
 
 10   
 /**
 11   
  * Starts the server aplication.
 12   
  * 
 13   
  * @author Pedro Costa
 14   
  * @author Helder Silva
 15   
  * @since 18/Jan/2004
 16   
  */
 17   
 public class Startup {
 18   
     
 19   
     
 20   
     static String configFileLocation = "conf/applicationContext.xml";
 21   
 
 22  0
     public static void main(String[] args) {
 23   
         
 24  0
         if( args != null && args.length > 0 )
 25  0
             configFileLocation = args[0];
 26   
             
 27  0
         FileSystemXmlApplicationContext appContext = new FileSystemXmlApplicationContext(configFileLocation);
 28   
         
 29  0
         StaticApplicationContext staticApp = (StaticApplicationContext)appContext.getBean("applicationContext");
 30   
         
 31  0
         staticApp.setParent( appContext );
 32   
         
 33  0
         staticApp.getBeanFactory().setParentBeanFactory( appContext.getBeanFactory() );
 34   
         
 35  0
         Listener listener = (Listener)staticApp.getBean("serverListener");
 36   
         
 37  0
         new Thread( listener ).start();
 38   
     }
 39   
 }
 40