1 16 package org.apache.cocoon.transformation.helpers; 17 18 import java.util.Map ; 19 20 import org.apache.avalon.framework.parameters.Parameters; 21 import org.apache.avalon.framework.thread.ThreadSafe; 22 import org.apache.cocoon.acting.ServiceableAction; 23 import org.apache.cocoon.environment.Redirector; 24 import org.apache.cocoon.environment.SourceResolver; 25 26 33 public class PreemptiveLoaderAction 34 extends ServiceableAction 35 implements ThreadSafe { 36 37 42 public Map act(Redirector redirector, 43 SourceResolver resolver, 44 Map objectModel, 45 String source, 46 Parameters parameters) 47 throws Exception { 48 PreemptiveLoader loader = PreemptiveLoader.getInstance(); 49 if (!loader.alive) { 50 loader.process(this.manager, resolver, this.getLogger()); 51 return EMPTY_MAP; 52 } 53 return null; 54 } 55 } 56 | Popular Tags |