Package org.pf4j

Class PropertiesPluginDescriptorFinder

  • All Implemented Interfaces:
    PluginDescriptorFinder

    public class PropertiesPluginDescriptorFinder
    extends java.lang.Object
    implements PluginDescriptorFinder
    Find a plugin descriptor in a properties file (in plugin repository).
    • Field Detail

      • log

        private static final org.slf4j.Logger log
      • DEFAULT_PROPERTIES_FILE_NAME

        public static final java.lang.String DEFAULT_PROPERTIES_FILE_NAME
        See Also:
        Constant Field Values
      • PLUGIN_DESCRIPTION

        public static final java.lang.String PLUGIN_DESCRIPTION
        See Also:
        Constant Field Values
      • PLUGIN_DEPENDENCIES

        public static final java.lang.String PLUGIN_DEPENDENCIES
        See Also:
        Constant Field Values
      • propertiesFileName

        protected java.lang.String propertiesFileName
    • Constructor Detail

      • PropertiesPluginDescriptorFinder

        public PropertiesPluginDescriptorFinder()
      • PropertiesPluginDescriptorFinder

        public PropertiesPluginDescriptorFinder​(java.lang.String propertiesFileName)
    • Method Detail

      • readProperties

        protected java.util.Properties readProperties​(java.nio.file.Path pluginPath)
      • getPropertiesPath

        protected java.nio.file.Path getPropertiesPath​(java.nio.file.Path pluginPath,
                                                       java.lang.String propertiesFileName)
      • createPluginDescriptor

        protected PluginDescriptor createPluginDescriptor​(java.util.Properties properties)