1 package org.apache.turbine.test; 2 3 18 19 import org.apache.avalon.framework.logger.AbstractLogEnabled; 20 import org.apache.avalon.framework.activity.Initializable; 21 import org.apache.avalon.framework.activity.Disposable; 22 import org.apache.avalon.framework.context.Contextualizable; 23 import org.apache.avalon.framework.context.Context; 24 import org.apache.avalon.framework.context.ContextException; 25 26 32 public class TestComponentImpl 33 extends AbstractLogEnabled 34 implements Initializable, Disposable, TestComponent, Contextualizable 35 { 36 private String appRoot; 37 38 public void initialize() throws Exception 39 { 40 } 41 42 public void dispose() 43 { 44 } 45 46 public void test() 47 { 48 setupLogger(this, "TestComponent"); 49 getLogger().debug("test"); 50 getLogger().debug("componentAppRoot = "+appRoot); 51 } 52 53 public void contextualize(Context context) throws ContextException 54 { 55 appRoot = (String ) context.get("componentAppRoot"); 56 } 57 } 58 | Popular Tags |