Class PluginFolder

    • Constructor Detail

      • PluginFolder

        public PluginFolder​(String folder,
                            boolean pluginXmlFolder,
                            boolean pluginAnnotationsFolder)
        Parameters:
        folder - The folder location
        pluginXmlFolder - set to true if the folder needs to be searched for plugin.xml appearances
        pluginAnnotationsFolder - 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 location
        pluginXmlFolder - set to true if the folder needs to be searched for plugin.xml appearances
        pluginAnnotationsFolder - set to true if the folder needs to be searched for jar files with plugin annotations
        searchLibDir - look inside the plugins lib dir for additional plugins
    • Method Detail

      • populateFolders

        public static List<PluginFolderInterface> populateFolders​(String xmlSubfolder)
        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
      • setFolder

        public void setFolder​(String folder)
        Parameters:
        folder - the folder to set
      • setPluginXmlFolder

        public void setPluginXmlFolder​(boolean pluginXmlFolder)
        Parameters:
        pluginXmlFolder - the pluginXmlFolder to set
      • setPluginAnnotationsFolder

        public void setPluginAnnotationsFolder​(boolean pluginAnnotationsFolder)
        Parameters:
        pluginAnnotationsFolder - the pluginAnnotationsFolder to set
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object