org.mortbay.jetty.plus

Interface Service

public interface Service extends LifeCycle

Method Summary
StringgetJNDI()
StringgetName()
booleanisStarted()
voidsetJNDI(String registration)
voidsetName(String name)
voidstart()
Start the LifeCycle.
voidstop()
Stop the LifeCycle.

Method Detail

getJNDI

public String getJNDI()

getName

public String getName()

isStarted

public boolean isStarted()

Returns: True if the LifeCycle has been started.

setJNDI

public void setJNDI(String registration)

setName

public void setName(String name)

start

public void start()
Start the LifeCycle.

Throws: Exception An arbitrary exception may be thrown.

stop

public void stop()
Stop the LifeCycle. The LifeCycle may wait for current activities to complete normally, but it can be interrupted.

Throws: InterruptedException Stopping a lifecycle is rarely atomic and may be interrupted by another thread. If this happens InterruptedException is throw and the component will be in an indeterminant state and should probably be discarded.

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