1 15 package org.apache.hivemind.impl; 16 17 import java.util.ArrayList ; 18 import java.util.List ; 19 20 25 public class RegistryAssemblyImpl implements RegistryAssembly 26 { 27 private List _runnables = new ArrayList (); 28 29 public void addPostProcessor(Runnable postProcessor) 30 { 31 _runnables.add(postProcessor); 32 } 33 34 38 public void performPostProcessing() 39 { 40 int count = _runnables.size(); 41 42 for (int i = 0; i < count; i++) 43 { 44 Runnable r = (Runnable ) _runnables.get(i); 45 46 r.run(); 47 } 48 } 49 50 } | Popular Tags |