Class CustomSettingsManagerImpl
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.CustomSettingsManagerImpl
-
- All Implemented Interfaces:
CustomSettingsManager
public class CustomSettingsManagerImpl extends Object implements CustomSettingsManager
- Since:
- 7.0
- Author:
- Maxim Podkolzine (maxim.podkolzine@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description CustomSettingsManagerImpl(ServerPaths serverPaths, FileWatcherFactory fileWatcherFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomSettings
getCustomSettings(String name)
Returns theCustomSettings
instance of the specifiedname
.CustomSettings
getCustomSettings(PluginDescriptor descriptor)
A convenient method, which correspond to a call:
-
-
-
Constructor Detail
-
CustomSettingsManagerImpl
public CustomSettingsManagerImpl(@NotNull ServerPaths serverPaths, @NotNull FileWatcherFactory fileWatcherFactory)
-
-
Method Detail
-
getCustomSettings
@NotNull public CustomSettings getCustomSettings(@NotNull String name)
Description copied from interface:CustomSettingsManager
Returns theCustomSettings
instance of the specifiedname
.It is safe to use the settings in a multi-threaded environment, i.e. to get one or several instances of the same
name
in different threads and access them concurrently.- Specified by:
getCustomSettings
in interfaceCustomSettingsManager
- Parameters:
name
- the accessor name (can be the plugin name or any internal one).- Returns:
CustomSettings
instance
-
getCustomSettings
@NotNull public CustomSettings getCustomSettings(@NotNull PluginDescriptor descriptor)
Description copied from interface:CustomSettingsManager
A convenient method, which correspond to a call:getCustomSettings(descriptor.getPluginName())
- Specified by:
getCustomSettings
in interfaceCustomSettingsManager
- Parameters:
descriptor
- the plugin descriptor- Returns:
CustomSettings
instance
-
-