|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.plugin.main.PluginsConfigurationBuilder
public class 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.
| Constructor Summary | |
|---|---|
PluginsConfigurationBuilder()
|
|
| Method Summary | |
|---|---|
PluginsConfigurationBuilder |
applicationKey(java.lang.String applicationKey)
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(java.io.File bundledPluginCacheDirectory)
Sets the directory to unzip bundled plugins into. |
PluginsConfigurationBuilder |
bundledPluginUrl(java.net.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 |
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,
java.util.concurrent.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(java.io.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(java.lang.String pluginDescriptorFilename)
Sets the plugin descriptor file name to expect in a plugin JAR artifact |
PluginsConfigurationBuilder |
pluginDirectory(java.io.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 |
useLegacyDynamicPluginDeployer(boolean useLegacyDynamicPluginDeployer)
Defines whether ther legacy plugin deployer should be used or not. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PluginsConfigurationBuilder()
| Method Detail |
|---|
public static PluginsConfigurationBuilder pluginsConfiguration()
public PluginsConfigurationBuilder packageScannerConfiguration(PackageScannerConfiguration packageScannerConfiguration)
packageScannerConfiguration - The configuration instance
public PluginsConfigurationBuilder hostComponentProvider(HostComponentProvider hostComponentProvider)
hostComponentProvider - The host component provider implementation
public PluginsConfigurationBuilder osgiPersistentCache(java.io.File osgiPersistentCache)
osgiPersistentCache - A directory that exists
public PluginsConfigurationBuilder pluginDirectory(java.io.File pluginDirectory)
pluginDirectory - A directory that exists
public PluginsConfigurationBuilder bundledPluginUrl(java.net.URL bundledPluginUrl)
bundledPluginCacheDirectory(java.io.File) is set.
bundledPluginUrl - A URL to a ZIP of plugin JAR files
public PluginsConfigurationBuilder bundledPluginCacheDirectory(java.io.File bundledPluginCacheDirectory)
bundledPluginUrl(java.net.URL) is set.
bundledPluginCacheDirectory - A directory that exists
public PluginsConfigurationBuilder pluginDescriptorFilename(java.lang.String pluginDescriptorFilename)
pluginDescriptorFilename - A valid file name
public PluginsConfigurationBuilder moduleDescriptorFactory(ModuleDescriptorFactory moduleDescriptorFactory)
DefaultModuleDescriptorFactory is what is used, which takes class instances of module
descriptors to instantiate.
moduleDescriptorFactory - A module descriptor factory instance
public PluginsConfigurationBuilder pluginStateStore(PluginPersistentStateStore pluginStateStore)
pluginStateStore - The plugin state store implementation
public PluginsConfigurationBuilder hotDeployPollingFrequency(long hotDeployPollingFrequency,
java.util.concurrent.TimeUnit timeUnit)
hotDeployPollingFrequency - The quantity of time periodstimeUnit - The units for the frequency
thispublic PluginsConfigurationBuilder useLegacyDynamicPluginDeployer(boolean useLegacyDynamicPluginDeployer)
useLegacyDynamicPluginDeployer - true if the legacy plugin deployer should be used.
thispublic PluginsConfigurationBuilder applicationKey(java.lang.String applicationKey)
applicationKey - the current application identifier
thispublic 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 AtlassianPlugins
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||