1 16 package org.apache.cocoon.environment; 17 18 import org.apache.cocoon.components.CocoonComponentManager; 19 20 34 public class CocoonRunnable extends CocoonComponentManager.AbstractCocoonRunnable { 35 Runnable target; 36 37 42 public CocoonRunnable() { 43 } 45 46 53 public CocoonRunnable(Runnable target) { 54 this.target = target; 55 } 56 57 61 protected void doRun() { 62 if (target != null) { 63 target.run(); 64 } 65 } 66 } 67 | Popular Tags |