File: SamplePlugin2.java

package info (click to toggle)
jspwiki 2.0.52-12
  • links: PTS
  • area: contrib
  • in suites: sarge
  • size: 2,328 kB
  • ctags: 1,756
  • sloc: java: 13,848; jsp: 1,171; xml: 233; sh: 123; makefile: 54; perl: 31
file content (26 lines) | stat: -rw-r--r-- 525 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import com.ecyrd.jspwiki.*;
import com.ecyrd.jspwiki.plugin.*;
import java.util.*;

/**
 *  Implements a simple plugin that just returns its text.
 *  <P>
 *  Parameters: text - text to return.
 *
 *  @author Janne Jalkanen
 */
public class SamplePlugin2
    implements WikiPlugin
{
    public void initialize( WikiEngine engine )
        throws PluginException
    {
    }

    public String execute( WikiContext context, Map params )
        throws PluginException
    {
        return (String)params.get("text");
    }

}