00001 00032 package org.objectweb.jonas.service; 00033 00034 import javax.naming.Context; 00035 00041 public interface Service { 00042 00048 void init(Context ctx) throws ServiceException; 00049 00054 void start() throws ServiceException; 00055 00060 void stop() throws ServiceException; 00061 00065 boolean isStarted(); 00066 00071 void setName(String name); 00072 00076 String getName(); 00077 }