Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/xpn/xwiki/plugin/alexa/AlexaPlugin.java


1   /**
2    * ===================================================================
3    *
4    * Copyright (c) 2003,2004 Ludovic Dubost, All rights reserved.
5    *
6    * This program is free software; you can redistribute it and/or
7    * modify it under the terms of the GNU Lesser General Public License
8    * as published by the Free Software Foundation; either version 2
9    * of the License, or (at your option) any later version.
10   *
11   * This program is distributed in the hope that it will be useful,
12   * but WITHOUT ANY WARRANTY; without even the implied warranty of
13   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14   * GNU Lesser General Public License for more details, published at 
15   * http://www.gnu.org/copyleft/lesser.html or in lesser.txt in the
16   * root folder of this distribution.
17  
18   * Created by
19   * User: Ludovic Dubost
20   * Date: 23 avr. 2005
21   * Time: 00:21:43
22   */
23  package com.xpn.xwiki.plugin.alexa;
24  
25  import com.xpn.xwiki.XWikiContext;
26  import com.xpn.xwiki.api.Api;
27  import com.xpn.xwiki.plugin.XWikiDefaultPlugin;
28  import com.xpn.xwiki.plugin.XWikiPluginInterface;
29  import org.apache.commons.logging.Log;
30  import org.apache.commons.logging.LogFactory;
31  
32  public class AlexaPlugin extends XWikiDefaultPlugin implements XWikiPluginInterface {
33          private static Log mLogger =
34                  LogFactory.getFactory().getInstance(com.xpn.xwiki.plugin.alexa.AlexaPlugin.class);
35  
36          public AlexaPlugin(String name, String className, XWikiContext context) {
37              super(name, className, context);
38              init(context);
39          }
40  
41      public String getName() {
42          return "alexa";
43      }
44  
45      public Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context) {
46          return new AlexaPluginApi((AlexaPlugin) plugin, context);
47      }
48  
49      public void flushCache() {
50      }
51  
52      public void init(XWikiContext context) {
53          super.init(context);
54      }
55  }