com.applino
Class ApplinoDeployer

java.lang.Object
  extended by org.mortbay.component.AbstractLifeCycle
      extended by com.applino.ApplinoDeployer
All Implemented Interfaces:
org.mortbay.component.LifeCycle

public class ApplinoDeployer
extends org.mortbay.component.AbstractLifeCycle


Nested Class Summary
protected  class ApplinoDeployer.ScannerListener
           
 
Field Summary
static java.lang.String NAME
           
 
Constructor Summary
ApplinoDeployer()
          Constructor
 
Method Summary
protected  void doStart()
          Start the hot deployer looking for webapps to deploy/undeploy
protected  void doStop()
          Stop the hot deployer.
 org.mortbay.resource.Resource getConfigurationDir()
           
 org.mortbay.jetty.deployer.ConfigurationManager getConfigurationManager()
           
 org.mortbay.jetty.handler.ContextHandlerCollection getContexts()
           
 java.lang.String getDirectory()
           
 int getScanInterval()
           
 void setConfigurationDir(java.io.File file)
           
 void setConfigurationDir(org.mortbay.resource.Resource resource)
           
 void setConfigurationDir(java.lang.String dir)
           
 void setConfigurationManager(org.mortbay.jetty.deployer.ConfigurationManager configMgr)
           
 void setContexts(org.mortbay.jetty.handler.ContextHandlerCollection contexts)
          Associate with a ContextHandlerCollection.
 void setDirectory(java.lang.String directory)
           
 void setPopupMenu(java.awt.PopupMenu menu)
           
 void setScanInterval(int seconds)
           
 void startApps()
           
 void stopApps()
           
 
Methods inherited from class org.mortbay.component.AbstractLifeCycle
isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

ApplinoDeployer

public ApplinoDeployer()
                throws java.lang.Exception
Constructor

Throws:
java.lang.Exception
Method Detail

getContexts

public org.mortbay.jetty.handler.ContextHandlerCollection getContexts()
Returns:
the ContextHandlerColletion to which to deploy the contexts

setContexts

public void setContexts(org.mortbay.jetty.handler.ContextHandlerCollection contexts)
Associate with a ContextHandlerCollection.

Parameters:
contexts - the ContextHandlerColletion to which to deploy the contexts

setScanInterval

public void setScanInterval(int seconds)
Parameters:
seconds - The period in second between scans for changed configuration files. A zero or negative interval disables hot deployment

getScanInterval

public int getScanInterval()

setConfigurationDir

public void setConfigurationDir(java.lang.String dir)
                         throws java.lang.Exception
Parameters:
dir -
Throws:
java.lang.Exception

setConfigurationDir

public void setConfigurationDir(java.io.File file)
                         throws java.lang.Exception
Parameters:
file -
Throws:
java.lang.Exception

setConfigurationDir

public void setConfigurationDir(org.mortbay.resource.Resource resource)
Parameters:
resource -

setDirectory

public void setDirectory(java.lang.String directory)
                  throws java.lang.Exception
Parameters:
directory -
Throws:
java.lang.Exception

getDirectory

public java.lang.String getDirectory()
Returns:

getConfigurationDir

public org.mortbay.resource.Resource getConfigurationDir()
Returns:

setConfigurationManager

public void setConfigurationManager(org.mortbay.jetty.deployer.ConfigurationManager configMgr)
Parameters:
configMgr -

getConfigurationManager

public org.mortbay.jetty.deployer.ConfigurationManager getConfigurationManager()
Returns:

setPopupMenu

public void setPopupMenu(java.awt.PopupMenu menu)

doStart

protected void doStart()
                throws java.lang.Exception
Start the hot deployer looking for webapps to deploy/undeploy

Overrides:
doStart in class org.mortbay.component.AbstractLifeCycle
Throws:
java.lang.Exception
See Also:
AbstractLifeCycle.doStart()

doStop

protected void doStop()
               throws java.lang.Exception
Stop the hot deployer.

Overrides:
doStop in class org.mortbay.component.AbstractLifeCycle
Throws:
java.lang.Exception
See Also:
AbstractLifeCycle.doStop()

startApps

public void startApps()
               throws java.lang.Exception
Throws:
java.lang.Exception

stopApps

public void stopApps()
              throws java.lang.Exception
Throws:
java.lang.Exception