summaryrefslogtreecommitdiff
path: root/javaunohelper/com/sun/star/comp/helper
diff options
context:
space:
mode:
authorDaniel Boelzle <dbo@openoffice.org>2001-11-28 16:43:34 +0000
committerDaniel Boelzle <dbo@openoffice.org>2001-11-28 16:43:34 +0000
commitc6570968fad8c7104a484f38c01688c76f80d49a (patch)
tree241c514f481d783a8c29eb47639d145d4baf4b6b /javaunohelper/com/sun/star/comp/helper
parentc7ec907db6409cf08843f4ad7fbfc7f28b8903fb (diff)
#88919# wrong singleton names
Diffstat (limited to 'javaunohelper/com/sun/star/comp/helper')
-rw-r--r--javaunohelper/com/sun/star/comp/helper/Bootstrap.java6
-rw-r--r--javaunohelper/com/sun/star/comp/helper/ComponentContext.java12
2 files changed, 10 insertions, 8 deletions
diff --git a/javaunohelper/com/sun/star/comp/helper/Bootstrap.java b/javaunohelper/com/sun/star/comp/helper/Bootstrap.java
index 1713c24cd056..f73e7226314d 100644
--- a/javaunohelper/com/sun/star/comp/helper/Bootstrap.java
+++ b/javaunohelper/com/sun/star/comp/helper/Bootstrap.java
@@ -2,9 +2,9 @@
*
* $RCSfile: Bootstrap.java,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: dbo $ $Date: 2001-06-25 14:27:51 $
+ * last change: $Author: dbo $ $Date: 2001-11-28 17:43:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -136,7 +136,7 @@ public class Bootstrap {
context_entries = new Hashtable( 1 );
// add smgr
context_entries.put(
- "com.sun.star.lang.theServiceManager",
+ "/singletons/com.sun.star.lang.theServiceManager",
new ComponentContextEntry( null, xSMgr ) );
// ... xxx todo: add standard entries
XComponentContext xContext = new ComponentContext( context_entries, null );
diff --git a/javaunohelper/com/sun/star/comp/helper/ComponentContext.java b/javaunohelper/com/sun/star/comp/helper/ComponentContext.java
index 1f81f9a347b8..edf65bd19f25 100644
--- a/javaunohelper/com/sun/star/comp/helper/ComponentContext.java
+++ b/javaunohelper/com/sun/star/comp/helper/ComponentContext.java
@@ -2,9 +2,9 @@
*
* $RCSfile: ComponentContext.java,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: jbu $ $Date: 2001-08-23 14:30:57 $
+ * last change: $Author: dbo $ $Date: 2001-11-28 17:43:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -94,6 +94,8 @@ class Disposer implements XEventListener
public class ComponentContext implements XComponentContext, XComponent
{
private static final boolean DEBUG = false;
+ private static final String SMGR_NAME = "/singletons/com.sun.star.lang.theServiceManager";
+ private static final String TDMGR_NAME = "/singletons/com.sun.star.reflection.theTypeDescriptionManager";
private Hashtable m_table;
private XComponentContext m_xDelegate;
@@ -112,7 +114,7 @@ public class ComponentContext implements XComponentContext, XComponent
m_xSMgr = null;
m_bDisposeSMgr = false;
- Object o = table.get( "com.sun.star.lang.theServiceManager" );
+ Object o = table.get( SMGR_NAME );
if (o != null)
{
if (o instanceof ComponentContextEntry)
@@ -266,7 +268,7 @@ public class ComponentContext implements XComponentContext, XComponent
while (keys.hasMoreElements())
{
String name = (String)keys.nextElement();
- if (! name.equals( "com.sun.star.lang.theServiceManager" ))
+ if (! name.equals( SMGR_NAME ))
{
XComponent xComp;
@@ -284,7 +286,7 @@ public class ComponentContext implements XComponentContext, XComponent
if (xComp != null)
{
- if (name.equals( "com.sun.star.reflection.theTypeDescriptionManager" ))
+ if (name.equals( TDMGR_NAME ))
{
tdmgr = xComp;
}