summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/Util.java
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-03-31 10:19:14 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-03-31 10:19:14 -0230
commit523c90a00583915ccb49880ca83ecc35467ed46b (patch)
treeb748b726573389ec7c9c2ca5fe77e321caf7398e /java/src/IceInternal/Util.java
parentBug 3608 - Icestorm.ice does not need to include Identity.ice (diff)
downloadice-523c90a00583915ccb49880ca83ecc35467ed46b.tar.bz2
ice-523c90a00583915ccb49880ca83ecc35467ed46b.tar.xz
ice-523c90a00583915ccb49880ca83ecc35467ed46b.zip
Bug 3045 - move getInstance() to IceInternal
Diffstat (limited to 'java/src/IceInternal/Util.java')
-rw-r--r--java/src/IceInternal/Util.java26
1 files changed, 26 insertions, 0 deletions
diff --git a/java/src/IceInternal/Util.java b/java/src/IceInternal/Util.java
new file mode 100644
index 00000000000..fbfc49e1c0f
--- /dev/null
+++ b/java/src/IceInternal/Util.java
@@ -0,0 +1,26 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+package IceInternal;
+
+public final class Util
+{
+ public static Instance
+ getInstance(Ice.Communicator communicator)
+ {
+ Ice.CommunicatorI p = (Ice.CommunicatorI)communicator;
+ return p.getInstance();
+ }
+
+ public static ProtocolPluginFacade
+ getProtocolPluginFacade(Ice.Communicator communicator)
+ {
+ return new ProtocolPluginFacadeI(communicator);
+ }
+}