Package org.pentaho.di.core.plugins
Class PluginFolder
java.lang.Object
org.pentaho.di.core.plugins.PluginFolder
- All Implemented Interfaces:
PluginFolderInterface
A folder to search plugins in.
- Author:
- matt
-
Constructor Summary
ConstructorsConstructorDescriptionPluginFolder(String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder) PluginFolder(String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder, boolean searchLibDir) -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.commons.vfs2.FileObject[]Find all the jar files in this plugin folderorg.apache.commons.vfs2.FileObject[]findJarFiles(boolean includeLibJars) inthashCode()booleanbooleanstatic List<PluginFolderInterface>populateFolders(String xmlSubfolder) Create a list of plugin folders based on the specified xml sub foldervoidvoidsetPluginAnnotationsFolder(boolean pluginAnnotationsFolder) voidsetPluginXmlFolder(boolean pluginXmlFolder) toString()
-
Constructor Details
-
PluginFolder
- Parameters:
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 annotations
-
PluginFolder
public PluginFolder(String folder, boolean pluginXmlFolder, boolean pluginAnnotationsFolder, boolean searchLibDir) - Parameters:
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 plugins
-
-
Method Details
-
toString
-
populateFolders
Create a list of plugin folders based on the specified xml sub folder- Parameters:
xmlSubfolder- the sub-folder to consider for XML plugin files or null if it's not applicable.- Returns:
- The list of plugin folders found
-
findJarFiles
Description copied from interface:PluginFolderInterfaceFind all the jar files in this plugin folder- Specified by:
findJarFilesin interfacePluginFolderInterface- Returns:
- The jar files
- Throws:
KettleFileException- In case there is a problem reading
-
findJarFiles
public org.apache.commons.vfs2.FileObject[] findJarFiles(boolean includeLibJars) throws KettleFileException - Throws:
KettleFileException
-
getFolder
- Specified by:
getFolderin interfacePluginFolderInterface- Returns:
- the folder
-
setFolder
- Parameters:
folder- the folder to set
-
isPluginXmlFolder
public boolean isPluginXmlFolder()- Specified by:
isPluginXmlFolderin interfacePluginFolderInterface- Returns:
- the pluginXmlFolder
-
setPluginXmlFolder
public void setPluginXmlFolder(boolean pluginXmlFolder) - Parameters:
pluginXmlFolder- the pluginXmlFolder to set
-
isPluginAnnotationsFolder
public boolean isPluginAnnotationsFolder()- Specified by:
isPluginAnnotationsFolderin interfacePluginFolderInterface- Returns:
- the pluginAnnotationsFolder
-
setPluginAnnotationsFolder
public void setPluginAnnotationsFolder(boolean pluginAnnotationsFolder) - Parameters:
pluginAnnotationsFolder- the pluginAnnotationsFolder to set
-
hashCode
public int hashCode() -
equals
-