Class RegistryHelper
java.lang.Object
org.openoffice.da.comp.w2lcommon.helper.RegistryHelper
This class defines convenience methods to access the OOo registry
using a given base path
-
Constructor Summary
ConstructorsConstructorDescriptionRegistryHelper
(com.sun.star.uno.XComponentContext xContext) Construct a new RegistryHelper using a given component context -
Method Summary
Modifier and TypeMethodDescriptionvoid
disposeRegistryView
(Object view) Dispose a previously obtained registry viewgetRegistryView
(String sPath, boolean bUpdate) Get a registry view relative to the given path
-
Constructor Details
-
RegistryHelper
public RegistryHelper(com.sun.star.uno.XComponentContext xContext) Construct a new RegistryHelper using a given component context- Parameters:
xContext
- the context to use to create new services
-
-
Method Details
-
getRegistryView
Get a registry view relative to the given path- Parameters:
sPath
- the base path within the registrybUpdate
- true if we need update access- Returns:
- the registry view
- Throws:
com.sun.star.uno.Exception
-
disposeRegistryView
Dispose a previously obtained registry view- Parameters:
view
- the view to dispose
-