public abstract class AbstractService extends java.lang.Object implements Service
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_jndi |
protected java.lang.String |
_name |
protected boolean |
_started |
Constructor and Description |
---|
AbstractService() |
protected java.lang.String _jndi
protected java.lang.String _name
protected boolean _started
public void setJNDI(java.lang.String registration)
public void start() throws java.lang.Exception
Service
public void stop() throws java.lang.InterruptedException
Service
stop
in interface Service
stop
in interface LifeCycle
java.lang.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.