public class PluginsConfigurationBuilder extends Object
PluginsConfiguration instances that additionally performs validation and default creation.
For a usage example, see the package javadocs.
Not thread-safe. Instances of this class should be thread and preferably method local.
| Constructor and Description |
|---|
PluginsConfigurationBuilder() |
| Modifier and Type | Method and Description |
|---|---|
PluginsConfigurationBuilder |
application(Application application)
Sets the current application key to use when filtering modules in a plugin
|
PluginsConfiguration |
build()
Builds a
PluginsConfiguration instance by processing the configuration that
was previously set, validating the input, and setting any defaults where not explicitly specified. |
PluginsConfigurationBuilder |
bundledPluginCacheDirectory(File bundledPluginCacheDirectory)
Sets the directory to unzip bundled plugins into.
|
PluginsConfigurationBuilder |
bundledPluginUrl(URL bundledPluginUrl)
Sets the URL to a ZIP file containing plugins that are to be started before any user plugins but after
framework bundles.
|
PluginsConfigurationBuilder |
frameworkBundleDirectory(File frameworkBundleDirectory)
Sets the directory that contains the framework bundles
|
PluginsConfigurationBuilder |
hostComponentProvider(HostComponentProvider hostComponentProvider)
Sets the host component provider instance, used for registering application services as OSGi services so that
they can be automatically available to plugins
|
PluginsConfigurationBuilder |
hotDeployPollingFrequency(long hotDeployPollingFrequency,
TimeUnit timeUnit)
Sets the polling frequency for scanning for new plugins
|
PluginsConfigurationBuilder |
moduleDescriptorFactory(ModuleDescriptorFactory moduleDescriptorFactory)
Sets the module descriptor factory that will be used to create instances of discovered module descriptors.
|
PluginsConfigurationBuilder |
osgiPersistentCache(File osgiPersistentCache)
Sets the set of persistent caching directories the OSGi classes will use.
|
PluginsConfigurationBuilder |
packageScannerConfiguration(PackageScannerConfiguration packageScannerConfiguration)
Sets the package scanner configuration instance that contains information about what packages to expose to plugins.
|
PluginsConfigurationBuilder |
pluginDescriptorFilename(String pluginDescriptorFilename)
Sets the plugin descriptor file name to expect in a plugin JAR artifact
|
PluginsConfigurationBuilder |
pluginDirectory(File pluginDirectory)
Sets the directory that contains the plugins and will be used to store installed plugins.
|
static PluginsConfigurationBuilder |
pluginsConfiguration()
Static factory for creating a new builder.
|
PluginsConfigurationBuilder |
pluginStateStore(PluginPersistentStateStore pluginStateStore)
Sets the plugin state store implementation used for persisting which plugins and modules are enabled or disabled
across restarts.
|
PluginsConfigurationBuilder |
scopeManager(ScopeManager scopeManager)
Deprecated.
in 5.0 for removal in 6.0 when
ScopeManager is removed |
PluginsConfigurationBuilder |
useLegacyDynamicPluginDeployer(boolean useLegacyDynamicPluginDeployer)
Defines whether ther legacy plugin deployer should be used or not.
|
public static PluginsConfigurationBuilder pluginsConfiguration()
public PluginsConfigurationBuilder packageScannerConfiguration(PackageScannerConfiguration packageScannerConfiguration)
packageScannerConfiguration - The configuration instancepublic PluginsConfigurationBuilder hostComponentProvider(HostComponentProvider hostComponentProvider)
hostComponentProvider - The host component provider implementationpublic PluginsConfigurationBuilder osgiPersistentCache(File osgiPersistentCache)
osgiPersistentCache - A directory that existspublic PluginsConfigurationBuilder pluginDirectory(File pluginDirectory)
pluginDirectory - A directory that existspublic PluginsConfigurationBuilder frameworkBundleDirectory(File frameworkBundleDirectory)
frameworkBundleDirectory - A directory that existspublic PluginsConfigurationBuilder bundledPluginUrl(URL bundledPluginUrl)
bundledPluginCacheDirectory(java.io.File) is set.bundledPluginUrl - A URL to a ZIP of plugin JAR filespublic PluginsConfigurationBuilder bundledPluginCacheDirectory(File bundledPluginCacheDirectory)
bundledPluginUrl(java.net.URL) is set.bundledPluginCacheDirectory - A directory that existspublic PluginsConfigurationBuilder pluginDescriptorFilename(String pluginDescriptorFilename)
pluginDescriptorFilename - A valid file namepublic PluginsConfigurationBuilder moduleDescriptorFactory(ModuleDescriptorFactory moduleDescriptorFactory)
DefaultModuleDescriptorFactory is what is used, which takes class instances of module
descriptors to instantiate.moduleDescriptorFactory - A module descriptor factory instancepublic PluginsConfigurationBuilder pluginStateStore(PluginPersistentStateStore pluginStateStore)
pluginStateStore - The plugin state store implementation@Deprecated public PluginsConfigurationBuilder scopeManager(ScopeManager scopeManager)
ScopeManager is removedscopeManager - The Scope Managerthispublic PluginsConfigurationBuilder hotDeployPollingFrequency(long hotDeployPollingFrequency, TimeUnit timeUnit)
hotDeployPollingFrequency - The quantity of time periodstimeUnit - The units for the frequencythispublic PluginsConfigurationBuilder useLegacyDynamicPluginDeployer(boolean useLegacyDynamicPluginDeployer)
useLegacyDynamicPluginDeployer - true if the legacy plugin deployer should be used.thispublic PluginsConfigurationBuilder application(Application application)
application - the current application identifierthispublic PluginsConfiguration build()
PluginsConfiguration instance by processing the configuration that
was previously set, validating the input, and setting any defaults where not explicitly specified.PluginsConfiguration instance to pass to AtlassianPluginsCopyright © 2019 Atlassian. All rights reserved.