Class PropertiesPluginDescriptorFinder
java.lang.Object
org.pf4j.PropertiesPluginDescriptorFinder
- All Implemented Interfaces:
PluginDescriptorFinder
Find a plugin descriptor in a properties file (in plugin repository).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PluginDescriptorcreatePluginDescriptor(Properties properties) protected DefaultPluginDescriptorprotected PathgetPropertiesPath(Path pluginPath, String propertiesFileName) booleanisApplicable(Path pluginPath) Returns true if this finder is applicable to the givenPath.protected PropertiesreadProperties(Path pluginPath)
-
Field Details
-
log
private static final org.slf4j.Logger log -
DEFAULT_PROPERTIES_FILE_NAME
- See Also:
-
PLUGIN_ID
- See Also:
-
PLUGIN_DESCRIPTION
- See Also:
-
PLUGIN_CLASS
- See Also:
-
PLUGIN_VERSION
- See Also:
-
PLUGIN_PROVIDER
- See Also:
-
PLUGIN_DEPENDENCIES
- See Also:
-
PLUGIN_REQUIRES
- See Also:
-
PLUGIN_LICENSE
- See Also:
-
propertiesFileName
-
-
Constructor Details
-
PropertiesPluginDescriptorFinder
public PropertiesPluginDescriptorFinder() -
PropertiesPluginDescriptorFinder
-
-
Method Details
-
isApplicable
Description copied from interface:PluginDescriptorFinderReturns true if this finder is applicable to the givenPath.- Specified by:
isApplicablein interfacePluginDescriptorFinder
-
find
- Specified by:
findin interfacePluginDescriptorFinder
-
readProperties
-
getPropertiesPath
-
createPluginDescriptor
-
createPluginDescriptorInstance
-