Package org.pf4j
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 PluginDescriptor
createPluginDescriptor
(Properties properties) protected DefaultPluginDescriptor
protected Path
getPropertiesPath
(Path pluginPath, String propertiesFileName) boolean
isApplicable
(Path pluginPath) Returns true if this finder is applicable to the givenPath
.protected Properties
readProperties
(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:PluginDescriptorFinder
Returns true if this finder is applicable to the givenPath
.- Specified by:
isApplicable
in interfacePluginDescriptorFinder
-
find
- Specified by:
find
in interfacePluginDescriptorFinder
-
readProperties
-
getPropertiesPath
-
createPluginDescriptor
-
createPluginDescriptorInstance
-