public class PluginFolder extends Object implements PluginFolderInterface
Constructor and Description |
---|
PluginFolder(String folder,
boolean pluginXmlFolder,
boolean pluginAnnotationsFolder) |
PluginFolder(String folder,
boolean pluginXmlFolder,
boolean pluginAnnotationsFolder,
boolean searchLibDir) |
Modifier and Type | Method and Description |
---|---|
org.apache.commons.vfs.FileObject[] |
findJarFiles()
Find all the jar files in this plugin folder
|
org.apache.commons.vfs.FileObject[] |
findJarFiles(boolean includeLibJars) |
String |
getFolder() |
boolean |
isPluginAnnotationsFolder() |
boolean |
isPluginXmlFolder() |
static List<PluginFolderInterface> |
populateFolders(String xmlSubfolder)
Create a list of plugin folders based on the specified xml sub folder
|
void |
setFolder(String folder) |
void |
setPluginAnnotationsFolder(boolean pluginAnnotationsFolder) |
void |
setPluginXmlFolder(boolean pluginXmlFolder) |
String |
toString() |
public PluginFolder(String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder)
folder
- The folder locationpluginXmlFolder
- set to true if the folder needs to be searched for plugin.xml appearancespluginAnnotationsFolder
- set to true if the folder needs to be searched for jar files with plugin annotationspublic PluginFolder(String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder, boolean searchLibDir)
folder
- The folder locationpluginXmlFolder
- set to true if the folder needs to be searched for plugin.xml appearancespluginAnnotationsFolder
- set to true if the folder needs to be searched for jar files with plugin annotationssearchLibDir
- look inside the plugins lib dir for additional pluginspublic static List<PluginFolderInterface> populateFolders(String xmlSubfolder)
xmlSubfolder
- the sub-folder to consider for XML plugin files or null if it's not applicable.public org.apache.commons.vfs.FileObject[] findJarFiles() throws KettleFileException
PluginFolderInterface
findJarFiles
in interface PluginFolderInterface
KettleFileException
- In case there is a problem readingpublic org.apache.commons.vfs.FileObject[] findJarFiles(boolean includeLibJars) throws KettleFileException
KettleFileException
public String getFolder()
getFolder
in interface PluginFolderInterface
public void setFolder(String folder)
folder
- the folder to setpublic boolean isPluginXmlFolder()
isPluginXmlFolder
in interface PluginFolderInterface
public void setPluginXmlFolder(boolean pluginXmlFolder)
pluginXmlFolder
- the pluginXmlFolder to setpublic boolean isPluginAnnotationsFolder()
isPluginAnnotationsFolder
in interface PluginFolderInterface
public void setPluginAnnotationsFolder(boolean pluginAnnotationsFolder)
pluginAnnotationsFolder
- the pluginAnnotationsFolder to set