src/main/java/com/workplacesystems/utilsj/threadpool/ThreadObjectFactory.java
public final boolean validateObject(Object obj) {
      log.debug(" validateObject..." + obj);
      if (obj instanceof WorkerThread) {
         WorkerThread rt = (WorkerThread) obj;
         if(!rt.isDone()) {  //if the thread is running the previous task, get another one.
            return false;
         }
         if (rt.isRunning()) {
            if (rt.getThreadGroup() == null) {
               return false;
            }
            return true;
         }
      }
      return true;
   }
public final boolean validateObject(Object obj) {
      log.debug(" validateObject..." + obj);
      if (obj instanceof WorkerThread) {
         WorkerThread rt = (WorkerThread) obj;
         if(!rt.isDone()) {  //if the thread is running the previous task, get another one.
            return false;
         }
         if (rt.isRunning()) {
            if (rt.getThreadGroup() == null) {
               return false;
            }
            return true;
         }
      }
      return true;
   }
public final boolean validateObject ( Object obj ) { log . debug ( " validateObject..." + obj ) ; if ( obj instanceof WorkerThread ) { WorkerThread rt = ( WorkerThread ) obj ; if ( ! rt . isDone ( ) ) { //if the thread is running the previous task, get another one.
 return false ; } if ( rt . isRunning ( ) ) { if ( rt . getThreadGroup ( ) == null ) { return false ; } return true ; } } return true ; }
/* (non-Javadoc)
@see org.apache.commons.pool.PoolableObjectFactory#validateObject(java.lang.Object)
/ * ( non - Javadoc )