00001 00032 package org.objectweb.jonas.service; 00033 00037 public abstract class AbsDynamicServiceImpl extends AbsServiceImpl implements Runnable { 00038 00043 public abstract void run() throws ServiceException; 00044 00048 public int waitTime() { 00049 return 0; 00050 } 00051 00056 protected final void doStart() { 00057 new Thread(this).start(); 00058 try { 00059 Thread.sleep(waitTime()); 00060 } catch (Exception e) { 00061 } 00062 } 00063 00064 }