1 31 32 package org.objectweb.jonas.service; 33 34 37 public abstract class AbsDynamicServiceImpl extends AbsServiceImpl implements Runnable { 38 39 43 public abstract void run() throws ServiceException; 44 45 48 public int waitTime() { 49 return 0; 50 } 51 52 56 protected final void doStart() { 57 new Thread (this).start(); 58 try { 59 Thread.sleep(waitTime()); 60 } catch (Exception e) { 61 } 62 } 63 64 } | Popular Tags |