Package jetbrains.buildServer.util
Class Win32RegistryAccessorProxy
- java.lang.Object
-
- jetbrains.buildServer.util.Win32RegistryAccessorProxy
-
- All Implemented Interfaces:
Win32RegistryAccessor
public class Win32RegistryAccessorProxy extends Object implements Win32RegistryAccessor
- Author:
- Eugene Petrenko Created: 06.04.2010 10:02:31
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.util.Win32RegistryAccessor
Win32RegistryAccessor.Hive
-
-
Constructor Summary
Constructors Constructor Description Win32RegistryAccessorProxy(Win32RegistryAccessor host)
-
Method Summary
All Methods Instance Methods Concrete 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.FilereadRegistryFile(Win32RegistryAccessor.Hive hive, Bitness bitness, String keyPath, String entryName)Tries to read registryStringreadRegistryText(Win32RegistryAccessor.Hive hive, Bitness bitness, String keyPath, String entryName)Tries to read registryvoidsetHost(Win32RegistryAccessor host)
-
-
-
Constructor Detail
-
Win32RegistryAccessorProxy
public Win32RegistryAccessorProxy(@NotNull Win32RegistryAccessor host)
-
-
Method Detail
-
setHost
public void setHost(@NotNull Win32RegistryAccessor host)
-
listSubKeys
@NotNull public Set<String> listSubKeys(@NotNull Win32RegistryAccessor.Hive hive, @NotNull Bitness bitness, @NotNull String keyPath)
Description copied from interface:Win32RegistryAccessorEnumerates sub key names of a given keyPath. i.e. for HKLM/Software/Microsoft it will definitely return 'Windows'- Specified by:
listSubKeysin interfaceWin32RegistryAccessor- Parameters:
hive- hivebitness- registry branch - x32 or x64.keyPath- path to search- Returns:
- key names without paths
-
listValueNames
@NotNull public Set<String> listValueNames(@NotNull Win32RegistryAccessor.Hive hive, @NotNull Bitness bitness, @NotNull String keyPath)
Description copied from interface:Win32RegistryAccessorEnumerates value names of a given keyPath.- Specified by:
listValueNamesin interfaceWin32RegistryAccessor- Parameters:
hive- hivebitness- registry branch - x32 or x64.keyPath- path to search- Returns:
- entries names without paths
-
readRegistryFile
@Nullable public File readRegistryFile(@NotNull Win32RegistryAccessor.Hive hive, @NotNull Bitness bitness, @NotNull String keyPath, @NotNull String entryName)
Description copied from interface:Win32RegistryAccessorTries to read registry- Specified by:
readRegistryFilein interfaceWin32RegistryAccessor- 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
-
readRegistryText
@Nullable public String readRegistryText(@NotNull Win32RegistryAccessor.Hive hive, @NotNull Bitness bitness, @NotNull String keyPath, @NotNull String entryName)
Description copied from interface:Win32RegistryAccessorTries to read registry- Specified by:
readRegistryTextin interfaceWin32RegistryAccessor- Parameters:
hive- hive to look intobitness- registry branch - x32 or x64.keyPath- path to read.entryName- key to read- Returns:
- read value or null
-
-