| java.lang.Object | |
| ↳ | com.atlassian.plugin.main.PluginsConfigurationBuilder |
The builder for 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.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Sets the current application key to use when filtering modules in a plugin
| |||||||||||
Builds a
PluginsConfiguration instance by processing the configuration that
was previously set, validating the input, and setting any defaults where not explicitly specified. | |||||||||||
Sets the directory to unzip bundled plugins into.
| |||||||||||
Sets the URL to a ZIP file containing plugins that are to be started before any user plugins but after
framework bundles.
| |||||||||||
Sets the host component provider instance, used for registering application services as OSGi services so that
they can be automatically available to plugins
| |||||||||||
Sets the polling frequency for scanning for new plugins
| |||||||||||
Sets the module descriptor factory that will be used to create instances of discovered module descriptors.
| |||||||||||
Sets the set of persistent caching directories the OSGi classes will use.
| |||||||||||
Sets the package scanner configuration instance that contains information about what packages to expose to plugins.
| |||||||||||
Sets the plugin descriptor file name to expect in a plugin JAR artifact
| |||||||||||
Sets the directory that contains the plugins and will be used to store installed plugins.
| |||||||||||
Sets the plugin state store implementation used for persisting which plugins and modules are enabled or disabled
across restarts.
| |||||||||||
Static factory for creating a new builder.
| |||||||||||
Defines whether ther legacy plugin deployer should be used or not.
| |||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
Sets the current application key to use when filtering modules in a plugin
| applicationKey | the current application identifier |
|---|
this
Builds a 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 AtlassianPlugins
Sets the directory to unzip bundled plugins into. The directory will automatically be cleaned out if the
framework detects any modification. Must be set if bundledPluginUrl(java.net.URL) is set.
| bundledPluginCacheDirectory | A directory that exists |
|---|
Sets the URL to a ZIP file containing plugins that are to be started before any user plugins but after
framework bundles. Must be set if bundledPluginCacheDirectory(java.io.File) is set.
| bundledPluginUrl | A URL to a ZIP of plugin JAR files |
|---|
Sets the host component provider instance, used for registering application services as OSGi services so that they can be automatically available to plugins
| hostComponentProvider | The host component provider implementation |
|---|
Sets the polling frequency for scanning for new plugins
| hotDeployPollingFrequency | The quantity of time periods |
|---|---|
| timeUnit | The units for the frequency |
this
Sets the module descriptor factory that will be used to create instances of discovered module descriptors.
Usually, the DefaultModuleDescriptorFactory is what is used, which takes class instances of module
descriptors to instantiate.
| moduleDescriptorFactory | A module descriptor factory instance |
|---|
Sets the set of persistent caching directories the OSGi classes will use. This includes the caching directory to extract framework bundles into, the container bundle cache, and the transformed plugin cache.
| osgiPersistentCache | A directory that exists |
|---|
Sets the package scanner configuration instance that contains information about what packages to expose to plugins.
| packageScannerConfiguration | The configuration instance |
|---|
Sets the plugin descriptor file name to expect in a plugin JAR artifact
| pluginDescriptorFilename | A valid file name |
|---|
Sets the directory that contains the plugins and will be used to store installed plugins.
| pluginDirectory | A directory that exists |
|---|
Sets the plugin state store implementation used for persisting which plugins and modules are enabled or disabled across restarts.
| pluginStateStore | The plugin state store implementation |
|---|
Static factory for creating a new builder.
Defines whether ther legacy plugin deployer should be used or not.
| useLegacyDynamicPluginDeployer | true if the legacy plugin deployer should be used. |
|---|
this