summaryrefslogtreecommitdiff
path: root/javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java
diff options
context:
space:
mode:
Diffstat (limited to 'javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java')
-rw-r--r--javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java72
1 files changed, 36 insertions, 36 deletions
diff --git a/javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java b/javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java
index 826c812fa049..c748187babd3 100644
--- a/javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java
+++ b/javaunohelper/com/sun/star/comp/helper/RegistryServiceFactory.java
@@ -1,7 +1,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -34,32 +34,32 @@ import com.sun.star.uno.UnoRuntime;
import com.sun.star.uno.RuntimeException;
/** The class provides a set of methods which create instances of the
- com.sun.star.lang.RegistryServiceManager service.
-
+ com.sun.star.lang.RegistryServiceManager service.
+
@deprecated use class Bootstrap instead
*/
public class RegistryServiceFactory {
static {
System.loadLibrary("juh");
}
-
+
private static native Object createRegistryServiceFactory(
- String writeRegistryFile,
- String readRegistryFile,
+ String writeRegistryFile,
+ String readRegistryFile,
boolean readOnly,
ClassLoader loader);
-
+
/**
- * This bootstraps an initial service factory working on a registry. If the first or both
+ * This bootstraps an initial service factory working on a registry. If the first or both
* parameters contain a value then the service factory is initialized with a simple registry
* or a nested registry. Otherwise the service factory must be initialized later with a valid
* registry.
*<BR>
- * @param writeRegistryFile file name of the simple registry or the first registry file of
- * the nested registry which will be opened with read/write rights. This
- * file will be created if necessary.
- * @param readRegistryFile file name of the second registry file of the nested registry
- * which will be opened with readonly rights.
+ * @param writeRegistryFile file name of the simple registry or the first registry file of
+ * the nested registry which will be opened with read/write rights. This
+ * file will be created if necessary.
+ * @param readRegistryFile file name of the second registry file of the nested registry
+ * which will be opened with readonly rights.
* @return a new RegistryServiceFactory.
*/
public static XMultiServiceFactory create(String writeRegistryFile, String readRegistryFile)
@@ -69,28 +69,28 @@ public class RegistryServiceFactory {
}
/**
- * This bootstraps an initial service factory working on a registry. If the first or both
+ * This bootstraps an initial service factory working on a registry. If the first or both
* parameters contain a value then the service factory is initialized with a simple registry
* or a nested registry. Otherwise the service factory must be initialized later with a valid
* registry.
*<BR>
- * @param writeRegistryFile file name of the simple registry or the first registry file of
- * the nested registry which will be opened with read/write rights. This
- * file will be created if necessary.
- * @param readRegistryFile file name of the second registry file of the nested registry
- * which will be opened with readonly rights.
- * @param readOnly flag which specify that the first registry file will be opened with
- * readonly rights. Default is FALSE. If this flag is used the registry
- * will not be created if not exist.
+ * @param writeRegistryFile file name of the simple registry or the first registry file of
+ * the nested registry which will be opened with read/write rights. This
+ * file will be created if necessary.
+ * @param readRegistryFile file name of the second registry file of the nested registry
+ * which will be opened with readonly rights.
+ * @param readOnly flag which specify that the first registry file will be opened with
+ * readonly rights. Default is FALSE. If this flag is used the registry
+ * will not be created if not exist.
*
* @return a new RegistryServiceFactory
*/
public static XMultiServiceFactory create(String writeRegistryFile, String readRegistryFile, boolean readOnly)
throws com.sun.star.uno.Exception
{
- // Ensure that we are on a native threads vm
+ // Ensure that we are on a native threads vm
// (binary UNO does use native threads).
- String vm_info = System.getProperty("java.vm.info");
+ String vm_info = System.getProperty("java.vm.info");
if(vm_info != null && vm_info.indexOf("green") != -1)
throw new RuntimeException(RegistryServiceFactory.class.toString() + ".create - can't use binary UNO with green threads");
@@ -107,7 +107,7 @@ public class RegistryServiceFactory {
// } else
// throw new com.sun.star.uno.Exception(writeRegistryFile + " doese not exist!");
// }
-
+
// if (readRegistryFile != null) {
// java.io.File file = new java.io.File(readRegistryFile);
@@ -122,18 +122,18 @@ public class RegistryServiceFactory {
writeRegistryFile, readRegistryFile, readOnly,
RegistryServiceFactory.class.getClassLoader() );
return UnoRuntime.queryInterface(
- XMultiServiceFactory.class, obj );
+ XMultiServiceFactory.class, obj );
}
/**
* This bootstraps an initial service factory working on a registry file.
*<BR>
- * @param registryFile file name of the registry to use/ create; if this is an empty
- * string, the default registry is used instead
+ * @param registryFile file name of the registry to use/ create; if this is an empty
+ * string, the default registry is used instead
*
* @return a new RegistryServiceFactory.
*/
- public static XMultiServiceFactory create(String registryFile)
+ public static XMultiServiceFactory create(String registryFile)
throws com.sun.star.uno.Exception
{
return create(registryFile, null, false);
@@ -142,15 +142,15 @@ public class RegistryServiceFactory {
/**
* This bootstraps an initial service factory working on a registry file.
*<BR>
- * @param registryFile file name of the registry to use/ create; if this is an empty
- * string, the default registry is used instead
- * @param readOnly flag which specify that the registry file will be opened with
- * readonly rights. Default is FALSE. If this flag is used the registry
- * will not be created if not exist.
- *
+ * @param registryFile file name of the registry to use/ create; if this is an empty
+ * string, the default registry is used instead
+ * @param readOnly flag which specify that the registry file will be opened with
+ * readonly rights. Default is FALSE. If this flag is used the registry
+ * will not be created if not exist.
+ *
* @return a new RegistryServiceFactory.
*/
- public static XMultiServiceFactory create(String registryFile, boolean readOnly)
+ public static XMultiServiceFactory create(String registryFile, boolean readOnly)
throws com.sun.star.uno.Exception
{
return create(registryFile, null, readOnly);