org.objectweb.jonas.service
Interface Service

All Known Subinterfaces:
DataBaseService, EarService, EJBService, JmsService, JmxService, MailService, RegistryService, ResourceService, SecurityService, TransactionService
All Known Implementing Classes:
AbsJmxServiceImpl, AbsServiceImpl, DataBaseServiceImpl, EarServiceImpl, EJBServiceImpl, JmsServiceImpl, JonasSecurityServiceImpl, MailServiceImpl, RegistryServiceImpl, ResourceServiceImpl, TransactionServiceImpl

public interface Service


Method Summary
 java.lang.String getName()
          Returns the service's name
 void init(javax.naming.Context ctx)
          Initialize the service
 boolean isStarted()
          Returns true if the service is started, false otherwise
 void setName(java.lang.String name)
          Set the service's name
 void start()
          Start the service
 void stop()
          Stop the service
 

Method Detail

init

public void init(javax.naming.Context ctx)
          throws ServiceException
Initialize the service

Parameters:
ctx - configuration of the service
Throws:
ServiceException

start

public void start()
           throws ServiceException
Start the service

Throws:
ServiceException

stop

public void stop()
          throws ServiceException
Stop the service

Throws:
ServiceException

isStarted

public boolean isStarted()
Returns true if the service is started, false otherwise


setName

public void setName(java.lang.String name)
Set the service's name


getName

public java.lang.String getName()
Returns the service's name