summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ReferenceFactory.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-09-07 02:30:29 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-09-07 02:30:29 +0000
commit6f1ded4bb739128f167f8486aeaac273cccc88d3 (patch)
tree1e75c490cf1403aa2165a35aace9d779f26294bb /java/src/IceInternal/ReferenceFactory.java
parenthttp://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=448 (diff)
downloadice-6f1ded4bb739128f167f8486aeaac273cccc88d3.tar.bz2
ice-6f1ded4bb739128f167f8486aeaac273cccc88d3.tar.xz
ice-6f1ded4bb739128f167f8486aeaac273cccc88d3.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=448
Diffstat (limited to 'java/src/IceInternal/ReferenceFactory.java')
-rw-r--r--java/src/IceInternal/ReferenceFactory.java11
1 files changed, 7 insertions, 4 deletions
diff --git a/java/src/IceInternal/ReferenceFactory.java b/java/src/IceInternal/ReferenceFactory.java
index 94220c8da7f..c3a35ee46c3 100644
--- a/java/src/IceInternal/ReferenceFactory.java
+++ b/java/src/IceInternal/ReferenceFactory.java
@@ -34,7 +34,7 @@ public final class ReferenceFactory
//
// Create new reference
//
- DirectReference ref = new DirectReference(_instance, ident, context, facet, mode, secure,
+ DirectReference ref = new DirectReference(_instance, _communicator, ident, context, facet, mode, secure,
endpoints, routerInfo, collocationOptimization);
return updateCache(ref);
}
@@ -63,7 +63,7 @@ public final class ReferenceFactory
//
// Create new reference
//
- IndirectReference ref = new IndirectReference(_instance, ident, context, facet, mode, secure,
+ IndirectReference ref = new IndirectReference(_instance, _communicator, ident, context, facet, mode, secure,
adapterId, routerInfo, locatorInfo, collocationOptimization);
return updateCache(ref);
}
@@ -88,7 +88,7 @@ public final class ReferenceFactory
//
// Create new reference
//
- FixedReference ref = new FixedReference(_instance, ident, context, facet, mode, fixedConnections);
+ FixedReference ref = new FixedReference(_instance, _communicator, ident, context, facet, mode, fixedConnections);
return updateCache(ref);
}
@@ -577,9 +577,10 @@ public final class ReferenceFactory
//
// Only for use by Instance
//
- ReferenceFactory(Instance instance)
+ ReferenceFactory(Instance instance, Ice.Communicator communicator)
{
_instance = instance;
+ _communicator = communicator;
}
synchronized void
@@ -591,6 +592,7 @@ public final class ReferenceFactory
}
_instance = null;
+ _communicator = null;
_defaultRouter = null;
_defaultLocator = null;
_references.clear();
@@ -632,6 +634,7 @@ public final class ReferenceFactory
}
private Instance _instance;
+ private Ice.Communicator _communicator;
private Ice.RouterPrx _defaultRouter;
private Ice.LocatorPrx _defaultLocator;
private java.util.WeakHashMap _references = new java.util.WeakHashMap();