1 15 package org.apache.hivemind.service.impl; 16 17 import java.util.Iterator ; 18 import java.util.List ; 19 20 import org.apache.hivemind.internal.ServicePoint; 21 22 28 public class EagerLoader implements Runnable  29 { 30 private List _servicePoints; 31 32 public void run() 33 { 34 Iterator i = _servicePoints.iterator(); 35 while (i.hasNext()) 36 { 37 ServicePoint point = (ServicePoint) i.next(); 38 39 point.forceServiceInstantiation(); 40 } 41 } 42 43 public void setServicePoints(List list) 44 { 45 _servicePoints = list; 46 } 47 48 } 49 | Popular Tags |