public class MailPlugin extends XWikiDefaultPlugin implements XWikiPluginInterface
Constructor and Description |
---|
MailPlugin(String name,
String className,
XWikiContext context) |
Modifier and Type | Method and Description |
---|---|
void |
flushCache()
Older equivalent of the
XWikiDefaultPlugin.flushCache(XWikiContext) method without a context provided. |
String |
getName()
The name which can be used for accessing this plugin from
XWiki.getPlugin(String, XWikiContext) . |
Api |
getPluginApi(XWikiPluginInterface plugin,
XWikiContext context)
Get a public scriptable API that can be used to call methods of the (privileged) plugin.
|
void |
init(XWikiContext context)
Global initialization, called when the platform is started and the plugin list is initialized.
|
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, getClassName, getLocalization, insidePREHandler, localizePlainOrKey, outsidePREHandler, setClassName, setName, startRenderingHandler, virtualInit
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginParsing, beginRendering, commonTagsHandler, downloadAttachment, endParsing, endRendering, endRenderingHandler, flushCache, insidePREHandler, outsidePREHandler, startRenderingHandler, virtualInit
public MailPlugin(String name, String className, XWikiContext context)
public String getName()
XWikiPluginInterface
XWiki.getPlugin(String, XWikiContext)
.getName
in interface XWikiPluginInterface
getName
in class XWikiDefaultPlugin
public Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context)
XWikiPluginInterface
getPluginApi
in interface XWikiPluginInterface
getPluginApi
in class XWikiDefaultPlugin
plugin
- the plugin instance to wrapcontext
- the current request contextnull
if the plugin doesn't want to expose a public APIpublic void flushCache()
XWikiDefaultPlugin
XWikiDefaultPlugin.flushCache(XWikiContext)
method without a context provided.flushCache
in class XWikiDefaultPlugin
public void init(XWikiContext context)
XWikiPluginInterface
init
in interface XWikiPluginInterface
init
in class XWikiDefaultPlugin
context
- the current context, should not be stored since it will become mostly unreliable once the initial
request is terminatedCopyright © 2004–2022 XWiki. All rights reserved.