KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > nutch > plugin > SimpleTestPlugin


1 /*
2  * Copyright (c) 2003 The Nutch Organization. All rights reserved. Use subject
3  * to the conditions in http://www.nutch.org/LICENSE.txt.
4  */

5
6 package net.nutch.plugin;
7
8 /**
9  * Simple Test plugin
10  *
11  * @author joa23
12  */

13 public class SimpleTestPlugin extends Plugin {
14
15   /**
16    * @param pDescriptor
17    */

18   public SimpleTestPlugin(PluginDescriptor pDescriptor) {
19
20     super(pDescriptor);
21   }
22
23   /*
24    * @see net.nutch.plugin.Plugin#startUp()
25    */

26   public void startUp() throws PluginRuntimeException {
27     System.err.println("start up Plugin: " + getDescriptor().getPluginId());
28
29   }
30
31   /*
32    * (non-Javadoc)
33    *
34    * @see net.nutch.plugin.Plugin#shutDown()
35    */

36   public void shutDown() throws PluginRuntimeException {
37     System.err.println("shutdown Plugin: " + getDescriptor().getPluginId());
38
39   }
40
41 }
42
43
Popular Tags