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.OsgiPersistentCache
Bascially 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:
isConfigured
in interfacePluginPath
-
getInstalledPluginsDirectory
Description copied from interface:PluginPath
The directory where plugins are placed to install them.- Specified by:
getInstalledPluginsDirectory
in interfacePluginPath
- Returns:
- a File that points to the root plugins dir (ie. ${jira.home}/plugins/installed-plugins)
-
getBundledPluginsDirectory
Description copied from interface:PluginPath
The 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:
getBundledPluginsDirectory
in interfacePluginPath
- Returns:
- A file that points to the old bundled plugins directory. (ie. ${jira.home}/plugins/.bundled-plugins)
-
getCustomPluginsDirectory
Description copied from interface:PluginPath
The custom directory specified by the system property atlassian.jira.plugin.scan.directory to load plugins from.- Specified by:
getCustomPluginsDirectory
in 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:PluginPath
The roster file specified by the system property atlassian.jira.plugin.roster.file to load plugins from.- Specified by:
getPluginsRosterFile
in 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:PluginPath
A file just like the roster file that is used to "freeze" the state of the installed plugins directory.- Specified by:
getPluginsFreezeFile
in 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:PluginPath
Bascially handles caching of plugin jars (bundled etc) and clearing those directories.- Specified by:
getOsgiPersistentCache
in interfacePluginPath
- Returns:
- A OsgiPersistentCache
-