public class Plugin extends Object implements PluginInterface
Constructor and Description |
---|
Plugin(String[] ids,
Class<? extends PluginTypeInterface> pluginType,
Class<?> mainType,
String category,
String name,
String description,
String imageFile,
boolean separateClassLoaderNeeded,
boolean nativePlugin,
Map<Class<?>,String> classMap,
List<String> libraries,
String errorHelpFile,
URL pluginFolder) |
Plugin(String[] ids,
Class<? extends PluginTypeInterface> pluginType,
Class<?> mainType,
String category,
String name,
String description,
String imageFile,
boolean separateClassLoaderNeeded,
boolean nativePlugin,
Map<Class<?>,String> classMap,
List<String> libraries,
String errorHelpFile,
URL pluginFolder,
String documentationUrl,
String casesUrl,
String forumUrl) |
Plugin(String[] ids,
Class<? extends PluginTypeInterface> pluginType,
Class<?> mainType,
String category,
String name,
String description,
String imageFile,
boolean separateClassLoaderNeeded,
String classLoaderGroup,
boolean nativePlugin,
Map<Class<?>,String> classMap,
List<String> libraries,
String errorHelpFile,
URL pluginFolder,
String documentationUrl,
String casesUrl,
String forumUrl) |
public Plugin(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, boolean nativePlugin, Map<Class<?>,String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder)
ids
- pluginType
- category
- name
- description
- imageFile
- separateClassLoaderNeeded
- nativePlugin
- classMap
- libraries
- public Plugin(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, boolean nativePlugin, Map<Class<?>,String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder, String documentationUrl, String casesUrl, String forumUrl)
ids
- pluginType
- category
- name
- description
- imageFile
- separateClassLoaderNeeded
- nativePlugin
- classMap
- libraries
- public Plugin(String[] ids, Class<? extends PluginTypeInterface> pluginType, Class<?> mainType, String category, String name, String description, String imageFile, boolean separateClassLoaderNeeded, String classLoaderGroup, boolean nativePlugin, Map<Class<?>,String> classMap, List<String> libraries, String errorHelpFile, URL pluginFolder, String documentationUrl, String casesUrl, String forumUrl)
ids
- pluginType
- mainType
- category
- name
- description
- imageFile
- separateClassLoaderNeeded
- classLoaderGroup
- nativePlugin
- classMap
- libraries
- errorHelpFile
- pluginFolder
- documentationUrl
- casesUrl
- forumUrl
- public boolean matches(String id)
matches
in interface PluginInterface
id
- the plugin id to matchpublic String getCategory()
getCategory
in interface PluginInterface
public void setCategory(String category)
category
- the category to setpublic String getName()
getName
in interface PluginInterface
public void setName(String name)
name
- the name to setpublic String getDescription()
getDescription
in interface PluginInterface
public void setDescription(String description)
description
- the description to setpublic String[] getIds()
getIds
in interface PluginInterface
public void setIds(String[] ids)
ids
- the ids to setpublic Class<? extends PluginTypeInterface> getPluginType()
getPluginType
in interface PluginInterface
public void setPluginType(Class<? extends PluginTypeInterface> pluginType)
pluginType
- the pluginType to setpublic String getImageFile()
getImageFile
in interface PluginInterface
public void setImageFile(String imageFile)
imageFile
- the imageFile to setpublic boolean isSeparateClassLoaderNeeded()
isSeparateClassLoaderNeeded
in interface PluginInterface
public void setSaperateClassLoaderNeeded(boolean separateClassLoaderNeeded)
separateClassLoaderNeeded
- the separateClassLoaderNeeded to setpublic boolean isNativePlugin()
isNativePlugin
in interface PluginInterface
public void setNativePlugin(boolean nativePlugin)
nativePlugin
- the nativePlugin to setpublic Map<Class<?>,String> getClassMap()
getClassMap
in interface PluginInterface
public void setClassMap(Map<Class<?>,String> classMap)
classMap
- the classMap to setpublic List<String> getLibraries()
getLibraries
in interface PluginInterface
public void setLibraries(List<String> libraries)
libraries
- the libraries to setpublic String getErrorHelpFile()
getErrorHelpFile
in interface PluginInterface
public void setErrorHelpFile(String errorHelpFile)
errorHelpFile
- the errorHelpFile to setpublic Class<?> getMainType()
getMainType
in interface PluginInterface
public URL getPluginDirectory()
getPluginDirectory
in interface PluginInterface
public String getDocumentationUrl()
getDocumentationUrl
in interface PluginInterface
public void setDocumentationUrl(String documentationUrl)
setDocumentationUrl
in interface PluginInterface
documentationUrl
- the documentationUrl to setpublic String getCasesUrl()
getCasesUrl
in interface PluginInterface
public void setCasesUrl(String casesUrl)
setCasesUrl
in interface PluginInterface
casesUrl
- the casesUrl to setpublic String getForumUrl()
getForumUrl
in interface PluginInterface
public void setForumUrl(String forumUrl)
setForumUrl
in interface PluginInterface
forumUrl
- the forum URL to setpublic String getClassLoaderGroup()
getClassLoaderGroup
in interface PluginInterface
public void setClassLoaderGroup(String classLoaderGroup)
setClassLoaderGroup
in interface PluginInterface
classLoaderGroup
- The group to which this class loader belongs.
Set to null if the plugin does not belong to a group (the default)