Package com.atlassian.jira.plugin
Class PluginPath.JiraHomeAdapter
java.lang.Object
com.atlassian.jira.plugin.PluginPath.JiraHomeAdapter
- All Implemented Interfaces:
PluginPath
- Enclosing interface:
PluginPath
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.plugin.PluginPath
PluginPath.JiraHomeAdapter -
Field Summary
Fields inherited from interface com.atlassian.jira.plugin.PluginPath
BUNDLED_SUBDIR, FREEZE_FILE_PATH, INSTALLED_PLUGINS_SUBDIR, OSGI_SUBDIR, PLUGINS_DIRECTORY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe directory where bundled plugins were stored historically.The custom directory specified by the system property atlassian.jira.plugin.scan.directory to load plugins from.The directory where plugins are placed to install them.com.atlassian.plugin.osgi.container.OsgiPersistentCacheBascially handles caching of plugin jars (bundled etc) and clearing those directories.A file just like the roster file that is used to "freeze" the state of the installed plugins directory.The roster file specified by the system property atlassian.jira.plugin.roster.file to load plugins from.boolean
-
Constructor Details
-
JiraHomeAdapter
-
-
Method Details
-
isConfigured
public boolean isConfigured()- Specified by:
isConfiguredin interfacePluginPath
-
getInstalledPluginsDirectory
Description copied from interface:PluginPathThe directory where plugins are placed to install them.- Specified by:
getInstalledPluginsDirectoryin interfacePluginPath- Returns:
- a File that points to the root plugins dir (ie. ${jira.home}/plugins/installed-plugins)
-
getBundledPluginsDirectory
Description copied from interface:PluginPathThe directory where bundled plugins were stored historically.This is being maintained to provide a directory for the BundledPluginLoader until we have a plugins with PLUGDEV-43 and can remove this entirely.
TODO: https://jdog.jira-dev.com/browse/JDEV-27508
- Specified by:
getBundledPluginsDirectoryin interfacePluginPath- Returns:
- A file that points to the old bundled plugins directory. (ie. ${jira.home}/plugins/.bundled-plugins)
-
getCustomPluginsDirectory
Description copied from interface:PluginPathThe custom directory specified by the system property atlassian.jira.plugin.scan.directory to load plugins from.- Specified by:
getCustomPluginsDirectoryin interfacePluginPath- Returns:
- A file that points to the path specified by the system property atlassian.jira.plugin.scan.directory.
- See Also:
-
getPluginsRosterFile
Description copied from interface:PluginPathThe roster file specified by the system property atlassian.jira.plugin.roster.file to load plugins from.- Specified by:
getPluginsRosterFilein interfacePluginPath- Returns:
- A file that points to the path specified by the system property atlassian.jira.plugin.roster.file.
- See Also:
-
getPluginsFreezeFile
Description copied from interface:PluginPathA file just like the roster file that is used to "freeze" the state of the installed plugins directory.- Specified by:
getPluginsFreezeFilein interfacePluginPath- Returns:
- A file that points to the path specified by the system property atlassian.jira.plugin.roster.file.
-
getOsgiPersistentCache
public com.atlassian.plugin.osgi.container.OsgiPersistentCache getOsgiPersistentCache()Description copied from interface:PluginPathBascially handles caching of plugin jars (bundled etc) and clearing those directories.- Specified by:
getOsgiPersistentCachein interfacePluginPath- Returns:
- A OsgiPersistentCache
-