com.coi.tools.os.izpack
Class Registry

java.lang.Object
  extended by com.coi.tools.os.win.RegistryImpl
      extended by com.coi.tools.os.izpack.Registry
All Implemented Interfaces:
MSWinConstants, NativeLibraryClient

public class Registry
extends RegistryImpl
implements NativeLibraryClient

Wrapper class for com.coi.tools.os.win.RegistryImpl for using it with IzPack. This class implements only the methods of interface NativeLibraryClient. All other methods are used directly from RegistryImpl.

Author:
Klaus Bartz

Field Summary
 
Fields inherited from interface com.coi.tools.os.win.MSWinConstants
ACCESS_SYSTEM_SECURITY, DELETE, FILE_ADD_FILE, FILE_ADD_SUBDIRECTORY, FILE_ALL_ACCESS, FILE_APPEND_DATA, FILE_CASE_PRESERVED_NAMES, FILE_CASE_SENSITIVE_SEARCH, FILE_CREATE_PIPE_INSTANCE, FILE_DELETE_CHILD, FILE_EXECUTE, FILE_FILE_COMPRESSION, FILE_GENERIC_EXECUTE, FILE_GENERIC_READ, FILE_GENERIC_WRITE, FILE_LIST_DIRECTORY, FILE_PERSISTENT_ACLS, FILE_READ_ATTRIBUTES, FILE_READ_DATA, FILE_READ_EA, FILE_SUPPORTS_ENCRYPTION, FILE_SUPPORTS_OBJECT_IDS, FILE_SUPPORTS_REMOTE_STORAGE, FILE_SUPPORTS_REPARSE_POINTS, FILE_SUPPORTS_SPARSE_FILES, FILE_TRAVERSE, FILE_UNICODE_ON_DISK, FILE_VOLUME_IS_COMPRESSED, FILE_VOLUME_QUOTAS, FILE_WRITE_ATTRIBUTES, FILE_WRITE_DATA, FILE_WRITE_EA, GENERIC_ALL, GENERIC_EXECUTE, GENERIC_READ, GENERIC_WRITE, HKEY_CLASSES_ROOT, HKEY_CURRENT_CONFIG, HKEY_CURRENT_USER, HKEY_DYN_DATA, HKEY_LOCAL_MACHINE, HKEY_PERFORMANCE_DATA, HKEY_USERS, MAXIMUM_ALLOWED, READ_CONTROL, REG_BINARY, REG_DWORD, REG_EXPAND_SZ, REG_LINK, REG_MULTI_SZ, REG_NONE, REG_SZ, SPECIFIC_RIGHTS_ALL, STANDARD_RIGHTS_ALL, STANDARD_RIGHTS_EXECUTE, STANDARD_RIGHTS_READ, STANDARD_RIGHTS_REQUIRED, STANDARD_RIGHTS_WRITE, SYNCHRONIZE, WRITE_DAC, WRITE_OWNER
 
Constructor Summary
Registry()
          Default constructor.
 
Method Summary
 void freeLibrary(java.lang.String name)
          This method is used to free the library at the end of progam execution.
private  void initialize()
          Initialize native part of this class and other settings.
 
Methods inherited from class com.coi.tools.os.win.RegistryImpl
activateLogging, addLoggingInfo, createKey, createKey, deleteKey, deleteKeyIfEmpty, deleteKeyIfEmpty, deleteValue, getLoggingInfo, getRoot, getSubkeys, getValue, getValueAsObject, getValueNames, keyExist, keyExist, resetLogging, rewind, setLoggingInfo, setRoot, setValue, setValue, setValue, setValue, setValue, setValue, suspendLogging, valueExist
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Registry

public Registry()
         throws java.lang.Exception
Default constructor.

Throws:
java.lang.Exception - if initialize of native part fails
Method Detail

initialize

private void initialize()
                 throws java.lang.Exception
Initialize native part of this class and other settings.

Throws:
java.lang.Exception - if problems are encountered

freeLibrary

public void freeLibrary(java.lang.String name)
This method is used to free the library at the end of progam execution. This class has no own library else it shares it in the COI common lib. To free the library, the helper class is called. After this call, any instance of this class will not be usable any more! Note that this method does NOT return at the first call, but at any other

DO NOT CALL THIS METHOD DIRECTLY!
It is used by the librarian to free the native library before physically deleting it from its temporary loaction. A call to this method will freeze the application irrecoverably!

Specified by:
freeLibrary in interface NativeLibraryClient
Parameters:
name - the name of the library to free. Use only the name and extension but not the path.
See Also:
NativeLibraryClient.freeLibrary(java.lang.String)