public static final class DefaultPluginManager.WikiPluginInfo extends WikiModuleInfo
m_adminBeanClass, m_author, m_authorUrl, m_description, m_htmlTemplate, m_maxVersion, m_minVersion, m_moduleUrl, m_moduleVersion, m_name, m_resource, m_scriptLocation, m_scriptText, m_stylesheetLocation, m_stylesheetText
Modifier and Type | Method and Description |
---|---|
String |
getAjaxAlias()
Returns the ajax alias name for this object.
|
String |
getAlias()
Returns the alias name for this object.
|
String |
getClassName()
Returns the full class name of this object.
|
String |
getIncludeText(String type)
Returns a text for IncludeResources.
|
protected void |
initializeFromXML(org.jdom2.Element el)
Initializes the ModuleInfo from some standard XML elements
which are under the given element.
|
protected void |
initializePlugin(DefaultPluginManager.WikiPluginInfo info,
WikiEngine engine,
List<String> searchPath,
List<String> externalJars)
Initializes a plugin, if it has not yet been initialized.
|
protected static DefaultPluginManager.WikiPluginInfo |
newInstance(Class<?> clazz)
Create a new WikiPluginInfo based on the Class information.
|
protected static DefaultPluginManager.WikiPluginInfo |
newInstance(String className,
org.jdom2.Element el,
List<String> searchPath,
List<String> externalJars)
Creates a new plugin info object which can be used to access a plugin.
|
WikiPlugin |
newPluginInstance(List<String> searchPath,
List<String> externalJars)
Creates a new plugin instance.
|
String |
toString()
Returns a string suitable for debugging.
|
compareTo, equals, getAdminBeanClass, getAuthor, getAuthorUrl, getDescription, getHtmlTemplate, getMaxVersion, getMinVersion, getModuleUrl, getModuleVersion, getName, getScriptLocation, getStylesheetLocation, getTextResource, hashCode
protected static DefaultPluginManager.WikiPluginInfo newInstance(String className, org.jdom2.Element el, List<String> searchPath, List<String> externalJars)
className
- Either a fully qualified class name, or a "short" name which is then
checked against the internal list of plugin packages.el
- A JDOM Element containing the information about this class.searchPath
- A List of Strings, containing different package names.externalJars
- the list of external jars to searchprotected void initializePlugin(DefaultPluginManager.WikiPluginInfo info, WikiEngine engine, List<String> searchPath, List<String> externalJars)
HttpServlet
it will automatically
register it as AJAX using WikiAjaxDispatcherServlet.registerServlet(String, WikiAjaxServlet)
.engine
- The WikiEnginesearchPath
- A List of Strings, containing different package names.externalJars
- the list of external jars to searchprotected void initializeFromXML(org.jdom2.Element el)
initializeFromXML
in class WikiModuleInfo
el
- The element to parse.protected static DefaultPluginManager.WikiPluginInfo newInstance(Class<?> clazz)
clazz
- The class to checkpublic String getClassName()
public String getAlias()
public String getAjaxAlias()
public WikiPlugin newPluginInstance(List<String> searchPath, List<String> externalJars) throws ClassNotFoundException, InstantiationException, IllegalAccessException
searchPath
- A List of Strings, containing different package names.externalJars
- the list of external jars to searchClassNotFoundException
- If the class declared was not found.InstantiationException
- If the class cannot be instantiated-IllegalAccessException
- If the class cannot be accessed.public String getIncludeText(String type)
type
- Either "script" or "stylesheet"Copyright © 2001-2019 The Apache Software Foundation. All rights reserved.