org.mortbay.jetty.plus

Interface Service

All Superinterfaces:
LifeCycle
Known Implementing Classes:
AbstractDataSourceService, AbstractService, DefaultDataSourceService, JotmService, MailService, TMService

public interface Service
extends LifeCycle

Method Summary

String
getJNDI()
String
getName()
boolean
isStarted()
void
setJNDI(String registration)
void
setName(String name)
void
start()
Start the LifeCycle.
void
stop()
Stop the LifeCycle.

Methods inherited from interface org.mortbay.util.LifeCycle

isStarted, start, stop

Method Details

getJNDI

public String getJNDI()

getName

public String getName()

isStarted

public boolean isStarted()
Specified by:
isStarted in interface LifeCycle
Returns:
True if the LifeCycle has been started.

setJNDI

public void setJNDI(String registration)

setName

public void setName(String name)

start

public void start()
            throws Exception
Start the LifeCycle.
Specified by:
start in interface LifeCycle

stop

public void stop()
            throws InterruptedException
Stop the LifeCycle. The LifeCycle may wait for current activities to complete normally, but it can be interrupted.
Specified by:
stop in interface LifeCycle

Copyright © 2004 Mortbay Consulting Pty. Ltd. All Rights Reserved.