public final class DefaultPluginApplicationMetaDataManager extends Object implements PluginApplicationMetaDataManager
PluginApplicationMetaData installed in the
platform. It reads the metadata exposed by plugins via
ApplicationMetaDataModuleDescriptors| Constructor and Description |
|---|
DefaultPluginApplicationMetaDataManager(com.atlassian.plugin.PluginAccessor accessor)
Create a new manager that will use the passed
PluginAccessor to find all the
installed PluginApplicationMetaData. |
| Modifier and Type | Method and Description |
|---|---|
io.atlassian.fugue.Option<PluginApplicationMetaData> |
getApplication(ApplicationKey key)
Return the installed
PluginApplicationMetaData with the passed key. |
Iterable<PluginApplicationMetaData> |
getApplications()
Return all the
PluginApplicationMetaDatas installed on the platform. |
public DefaultPluginApplicationMetaDataManager(com.atlassian.plugin.PluginAccessor accessor)
PluginAccessor to find all the
installed PluginApplicationMetaData.accessor - the accessor used to find all the installed PluginApplicationMetaDatapublic Iterable<PluginApplicationMetaData> getApplications()
PluginApplicationMetaDataManagerPluginApplicationMetaDatas installed on the platform.getApplications in interface PluginApplicationMetaDataManagerPluginApplicationMetaDatas installed on the platform.public io.atlassian.fugue.Option<PluginApplicationMetaData> getApplication(ApplicationKey key)
PluginApplicationMetaDataManagerPluginApplicationMetaData with the passed key.
Option.none() is returned to indicate that the PluginApplicationMetaData
is not installed.getApplication in interface PluginApplicationMetaDataManagerkey - the key to search for.PluginApplicationMetaData with the passed key or Option.none()
if no such PluginApplicationMetaData exists.Copyright © 2018 Atlassian. All rights reserved.