1 package org.apache.turbine.test;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 /***
27 * Implementation of the test component.
28 *
29 * @author <a href="mailto:quintonm@bellsouth.net">Quinton McCombs</a>
30 * @version $Id: TestComponentImpl.java 264148 2005-08-29 14:21:04Z henning $
31 */
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 }