01: package com.foo;
02:
03: import com.ecyrd.jspwiki.*;
04: import com.ecyrd.jspwiki.plugin.*;
05: import java.util.*;
06:
07: /**
08: * Implements a simple plugin that just returns its text.
09: * <P>
10: * Parameters: text - text to return.
11: *
12: * @author Janne Jalkanen
13: */
14: public class SamplePlugin3 implements WikiPlugin {
15: public void initialize(WikiEngine engine) throws PluginException {
16: }
17:
18: public String execute(WikiContext context, Map params)
19: throws PluginException {
20: return (String) params.get("text");
21: }
22:
23: }
|