org.overlord.commons.dev.server
Class DevServerEnvironment

java.lang.Object
  extended by org.overlord.commons.dev.server.DevServerEnvironment

public abstract class DevServerEnvironment
extends Object

Holds information about the development runtime environment.

Author:
eric.wittmann@redhat.com

Constructor Summary
DevServerEnvironment(String[] args)
          Constructor.
 
Method Summary
 void addModule(String moduleId, IModuleDiscoveryStrategy... discoveryStrategies)
          Adds a module to the environment.
 void createAppConfigs()
          Creates the UI application configs and sets the system property telling the Overlord Header servlet where to find them.
 DevServerModule getModule(String moduleId)
           
 File getModuleDir(String moduleId)
          Gets the module's directory.
 File getModuleWorkDir(String moduleId)
          Gets the module's work directory.
 File getTargetDir()
           
protected  void inspectArgs(String[] args)
          Checks for interesting command line args.
 boolean isModuleInIDE(String moduleId)
           
 boolean isUsingClassHiderAgent()
           
protected  void onVmExit()
          Do any cleanup on exit.
 void setTargetDir(File targetDir)
           
 void setUsingClassHiderAgent(boolean usingClassHiderAgent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DevServerEnvironment

public DevServerEnvironment(String[] args)
Constructor.

Parameters:
args -
Method Detail

onVmExit

protected void onVmExit()
Do any cleanup on exit.


isModuleInIDE

public boolean isModuleInIDE(String moduleId)
Parameters:
moduleId -
Returns:
true if the module was detected in the IDE

getModuleWorkDir

public File getModuleWorkDir(String moduleId)
Gets the module's work directory.

Parameters:
moduleId -

getModuleDir

public File getModuleDir(String moduleId)
Gets the module's directory.

Parameters:
moduleId -

getModule

public DevServerModule getModule(String moduleId)
Parameters:
moduleId -
Returns:

addModule

public void addModule(String moduleId,
                      IModuleDiscoveryStrategy... discoveryStrategies)
Adds a module to the environment.

Parameters:
moduleId -
discoveryStrategies -

getTargetDir

public File getTargetDir()
Returns:
the targetDir

setTargetDir

public void setTargetDir(File targetDir)
Parameters:
targetDir - the targetDir to set

inspectArgs

protected void inspectArgs(String[] args)
Checks for interesting command line args.

Parameters:
args -

isUsingClassHiderAgent

public boolean isUsingClassHiderAgent()
Returns:
the usingClassHiderAgent

setUsingClassHiderAgent

public void setUsingClassHiderAgent(boolean usingClassHiderAgent)
Parameters:
usingClassHiderAgent - the usingClassHiderAgent to set

createAppConfigs

public void createAppConfigs()
                      throws Exception
Creates the UI application configs and sets the system property telling the Overlord Header servlet where to find them.

Throws:
Exception


Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.