Package jetbrains.buildServer.util
Interface Win32RegistryAccessor
-
- All Known Implementing Classes:
CachedRegistryAccessor
,Win32RegistryAccessorProxy
,Win32RegistryNativeAccessorImpl
public interface Win32RegistryAccessor
Provides access to windows registry. This interface is registered in Spring.- Since:
- 5.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
Win32RegistryAccessor.Hive
Registry hive
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>
listSubKeys(Win32RegistryAccessor.Hive hive, Bitness bitness, String keyPath)
Enumerates sub key names of a given keyPath.Set<String>
listValueNames(Win32RegistryAccessor.Hive hive, Bitness bitness, String keyPath)
Enumerates value names of a given keyPath.File
readRegistryFile(Win32RegistryAccessor.Hive hive, Bitness bitness, String keyPath, String entryName)
Tries to read registryString
readRegistryText(Win32RegistryAccessor.Hive hive, Bitness bitness, String keyPath, String entryName)
Tries to read registry
-
-
-
Method Detail
-
readRegistryText
@Nullable String readRegistryText(@NotNull Win32RegistryAccessor.Hive hive, @NotNull Bitness bitness, @NotNull String keyPath, @NotNull String entryName)
Tries to read registry- Parameters:
hive
- hive to look intobitness
- registry branch - x32 or x64.keyPath
- path to read.entryName
- key to read- Returns:
- read value or null
-
readRegistryFile
@Nullable File readRegistryFile(@NotNull Win32RegistryAccessor.Hive hive, @NotNull Bitness bitness, @NotNull String keyPath, @NotNull String entryName)
Tries to read registry- Parameters:
hive
- hive to look intobitness
- registry branch - x32 or x64.keyPath
- path to read.entryName
- entryName to read- Returns:
- read File if read text is a path to an existing file or null
-
listSubKeys
@NotNull Set<String> listSubKeys(@NotNull Win32RegistryAccessor.Hive hive, @NotNull Bitness bitness, @NotNull String keyPath)
Enumerates sub key names of a given keyPath. i.e. for HKLM/Software/Microsoft it will definitely return 'Windows'- Parameters:
hive
- hivebitness
- registry branch - x32 or x64.keyPath
- path to search- Returns:
- key names without paths
-
listValueNames
@NotNull Set<String> listValueNames(@NotNull Win32RegistryAccessor.Hive hive, @NotNull Bitness bitness, @NotNull String keyPath)
Enumerates value names of a given keyPath.- Parameters:
hive
- hivebitness
- registry branch - x32 or x64.keyPath
- path to search- Returns:
- entries names without paths
-
-