org.abstracthorizon.extend.server.dynamic.secondstage
Class Bootstrap

java.lang.Object
  extended by org.abstracthorizon.extend.server.dynamic.secondstage.Bootstrap

public class Bootstrap
extends Object

Bootstrap class that sets up Extend through maven style repository

Author:
Daniel Sendula

Nested Class Summary
static class Bootstrap.BootstrapClassLoader
           
static class Bootstrap.BootstrapModule
           
static class Bootstrap.DeploymentManagerStub
           
 
Field Summary
protected  HashSet<String> alreadyDeployedModules
           
protected  boolean debug
           
protected  Bootstrap.DeploymentManagerStub deploymentManager
           
protected  List<String> extraRepos
           
protected  DeploymentManager finalDeploymentManager
           
protected  File folder
           
protected  BufferedReader in
           
protected  String initialJar
           
protected  String initialVersion
           
protected static org.slf4j.Logger logger
          Logger
protected  PrintWriter out
           
protected  Socket socket
           
protected  String version
           
protected  boolean weStarted
           
 
Constructor Summary
Bootstrap()
           
 
Method Summary
protected  Socket connectToRunningServer()
           
 void deploy(String location)
           
protected  void fixSpring()
           
 void help()
           
 void install(boolean overwrite)
           
protected  void installFile(URL url, File file)
           
static void main(String[] args)
           
 void processArguments(String[] args)
           
protected  String processHelpLine(String s)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.slf4j.Logger logger
Logger


initialVersion

protected String initialVersion

version

protected String version

folder

protected File folder

alreadyDeployedModules

protected HashSet<String> alreadyDeployedModules

initialJar

protected String initialJar

deploymentManager

protected Bootstrap.DeploymentManagerStub deploymentManager

finalDeploymentManager

protected DeploymentManager finalDeploymentManager

weStarted

protected boolean weStarted

socket

protected Socket socket

out

protected PrintWriter out

in

protected BufferedReader in

debug

protected boolean debug

extraRepos

protected List<String> extraRepos
Constructor Detail

Bootstrap

public Bootstrap()
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

processArguments

public void processArguments(String[] args)
                      throws Exception
Throws:
Exception

help

public void help()

processHelpLine

protected String processHelpLine(String s)

install

public void install(boolean overwrite)
             throws IOException
Throws:
IOException

installFile

protected void installFile(URL url,
                           File file)
                    throws IOException
Throws:
IOException

start

public void start()
           throws Exception
Throws:
Exception

fixSpring

protected void fixSpring()
                  throws URISyntaxException
Throws:
URISyntaxException

stop

public void stop()
          throws Exception
Throws:
Exception

deploy

public void deploy(String location)
            throws Exception
Throws:
Exception

connectToRunningServer

protected Socket connectToRunningServer()


Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.