summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ObserverHelper.java
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2014-10-20 11:40:05 -0230
committerMatthew Newhook <matthew@zeroc.com>2014-10-20 11:40:05 -0230
commitb51469b41167fb86ae2059a15cf0475c53fdda7b (patch)
treefc85d6ca2efd89c67e1e4e7438f437c3e08313f4 /java/src/IceInternal/ObserverHelper.java
parentFixed (ICE-5695) - IceSSL: misleading exception (diff)
downloadice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.bz2
ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.tar.xz
ice-b51469b41167fb86ae2059a15cf0475c53fdda7b.zip
Down with ant. From the gradle to the grave.
Diffstat (limited to 'java/src/IceInternal/ObserverHelper.java')
-rw-r--r--java/src/IceInternal/ObserverHelper.java65
1 files changed, 0 insertions, 65 deletions
diff --git a/java/src/IceInternal/ObserverHelper.java b/java/src/IceInternal/ObserverHelper.java
deleted file mode 100644
index bb6edb015c1..00000000000
--- a/java/src/IceInternal/ObserverHelper.java
+++ /dev/null
@@ -1,65 +0,0 @@
-// **********************************************************************
-//
-// Copyright (c) 2003-2014 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;
-
-import Ice.Instrumentation.CommunicatorObserver;
-import Ice.Instrumentation.InvocationObserver;
-
-public final class ObserverHelper
-{
- static public InvocationObserver
- get(Instance instance, String op)
- {
- CommunicatorObserver obsv = instance.initializationData().observer;
- if(obsv != null)
- {
- InvocationObserver observer = obsv.getInvocationObserver(null, op, _emptyContext);
- if(observer != null)
- {
- observer.attach();
- }
- return observer;
- }
- return null;
- }
-
- static public InvocationObserver
- get(Ice.ObjectPrx proxy, String op)
- {
- return get(proxy, op, null);
- }
-
- static public InvocationObserver
- get(Ice.ObjectPrx proxy, String op, java.util.Map<String, String> context)
- {
- CommunicatorObserver obsv =
- ((Ice.ObjectPrxHelperBase)proxy).__reference().getInstance().initializationData().observer;
- if(obsv != null)
- {
- InvocationObserver observer;
- if(context == null)
- {
- observer = obsv.getInvocationObserver(proxy, op, _emptyContext);
- }
- else
- {
- observer = obsv.getInvocationObserver(proxy, op, context);
- }
- if(observer != null)
- {
- observer.attach();
- }
- return observer;
- }
- return null;
- }
-
- private static final java.util.Map<String, String> _emptyContext = new java.util.HashMap<String, String>();
-}