Package com.atlassian.plugin.metadata
Class ClasspathFilePluginMetadata
java.lang.Object
com.atlassian.plugin.metadata.ClasspathFilePluginMetadata
- All Implemented Interfaces:
RequiredPluginProvider
Looks on the classpath for three files named:
- application-provided-plugins.txt - used to list the plugin keys of all plugins that are provided by the host application
- application-required-plugins.txt - used to list the plugin keys that are considered required for the application to function correctly
- application-required-modules.txt - used to list the module keys that are considered required for the application to function correctly
All files contents will be used to inform this implementation of plugin keys. This will read the contents all instances of those files into the structures of this class.
The values will determine the plugin metadata for this implementation.
- Since:
- 2.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanapplicationProvided(Plugin plugin) The set of all of the plugin modules that have been marked as required by the host application.The set of all of the plugins that have been marked as required by the host application.booleanrequired(ModuleDescriptor<?> module) boolean
-
Constructor Details
-
ClasspathFilePluginMetadata
public ClasspathFilePluginMetadata()
-
-
Method Details
-
applicationProvided
-
required
-
required
-
getRequiredPluginKeys
Description copied from interface:RequiredPluginProviderThe set of all of the plugins that have been marked as required by the host application.- Specified by:
getRequiredPluginKeysin interfaceRequiredPluginProvider- Returns:
- The set of plugins required by the host application, or the empty set.
-
getRequiredModuleKeys
Description copied from interface:RequiredPluginProviderThe set of all of the plugin modules that have been marked as required by the host application.- Specified by:
getRequiredModuleKeysin interfaceRequiredPluginProvider- Returns:
- The set of plugin modules required by the host application, or the empty set.
-