public class PluginRetriever
extends java.lang.Object
Each plugin must reside in its own directory underneath the top-level directory, and must consist of a manifest file (named plugin.xml) and a jar containing the class files which define the plugin.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_BASE_FOLDER |
static java.lang.String |
MANIFEST_FILE_NAME |
Constructor and Description |
---|
PluginRetriever()
Construct a PluginRetriever with a base directory of "plugins".
|
PluginRetriever(java.lang.String directory)
Construct a PluginRetriever with a base directory other than the default.
|
Modifier and Type | Method and Description |
---|---|
TabbedContent[] |
getTabbedContentPlugins()
Returns the TabbedContent plugins.
|
public static final java.lang.String MANIFEST_FILE_NAME
public static final java.lang.String DEFAULT_BASE_FOLDER
public PluginRetriever(java.lang.String directory)
TODO: Currently this class only supports "TabbedContent" style plugins. Eventually it should be modified to be more generic and allow for extension points in other areas.
directory
- the name of the folder plugins are located, relative to the
home directorypublic PluginRetriever()
TODO: Currently this class only supports "TabbedContent" style plugins. Eventually it should be modified to be more generic and allow for extension points in other areas.
public TabbedContent[] getTabbedContentPlugins()