org.codehaus.plexus.service.jetty
Class JettyPlexusService
java.lang.Object
org.codehaus.plexus.logging.AbstractLogEnabled
org.codehaus.plexus.service.jetty.JettyPlexusService
- All Implemented Interfaces:
- org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.logging.LogEnabled, org.codehaus.plexus.application.service.PlexusService, org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable
- public class JettyPlexusService
- extends org.codehaus.plexus.logging.AbstractLogEnabled
- implements org.codehaus.plexus.application.service.PlexusService, org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable, org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable
- Version:
- $Id: JettyPlexusService.java 2210 2005-07-06 09:42:38Z trygvis $
- Author:
- Trygve Laugstøl
Nested classes inherited from class org.codehaus.plexus.application.service.PlexusService |
|
Fields inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
|
Fields inherited from interface org.codehaus.plexus.application.service.PlexusService |
ROLE |
Method Summary |
void |
afterApplicationStart(org.codehaus.plexus.application.profile.ApplicationRuntimeProfile applicationRuntimeProfile,
org.codehaus.plexus.configuration.PlexusConfiguration serviceConfiguration)
|
void |
beforeApplicationStart(org.codehaus.plexus.application.profile.ApplicationRuntimeProfile applicationRuntimeProfile,
org.codehaus.plexus.configuration.PlexusConfiguration serviceConfiguration)
|
private void |
deployDirectory(java.io.File directory,
java.lang.String context,
java.lang.String virtualHost,
org.codehaus.plexus.application.profile.ApplicationRuntimeProfile runtimeProfile)
|
private void |
extractJarFile(java.io.File file,
java.lang.String extractionPath)
|
void |
initialize()
|
void |
start()
|
void |
stop()
|
Methods inherited from class org.codehaus.plexus.logging.AbstractLogEnabled |
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.codehaus.plexus.application.service.PlexusService |
|
configurationBuilder
private ServiceConfigurationBuilder configurationBuilder
deployer
private org.codehaus.plexus.application.deploy.ApplicationDeployer deployer
servletContainer
private ServletContainer servletContainer
JettyPlexusService
public JettyPlexusService()
initialize
public void initialize()
- Specified by:
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
start
public void start()
- Specified by:
start
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable
stop
public void stop()
- Specified by:
stop
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Startable
beforeApplicationStart
public void beforeApplicationStart(org.codehaus.plexus.application.profile.ApplicationRuntimeProfile applicationRuntimeProfile,
org.codehaus.plexus.configuration.PlexusConfiguration serviceConfiguration)
throws java.lang.Exception
- Specified by:
beforeApplicationStart
in interface org.codehaus.plexus.application.service.PlexusService
- Throws:
java.lang.Exception
afterApplicationStart
public void afterApplicationStart(org.codehaus.plexus.application.profile.ApplicationRuntimeProfile applicationRuntimeProfile,
org.codehaus.plexus.configuration.PlexusConfiguration serviceConfiguration)
throws java.lang.Exception
- Specified by:
afterApplicationStart
in interface org.codehaus.plexus.application.service.PlexusService
- Throws:
java.lang.Exception
deployDirectory
private void deployDirectory(java.io.File directory,
java.lang.String context,
java.lang.String virtualHost,
org.codehaus.plexus.application.profile.ApplicationRuntimeProfile runtimeProfile)
throws java.lang.Exception
- Throws:
java.lang.Exception
extractJarFile
private void extractJarFile(java.io.File file,
java.lang.String extractionPath)
throws java.lang.Exception
- Throws:
java.lang.Exception