diff options
Diffstat (limited to 'java/src/Ice/_ObjectDelD.java')
-rw-r--r-- | java/src/Ice/_ObjectDelD.java | 314 |
1 files changed, 0 insertions, 314 deletions
diff --git a/java/src/Ice/_ObjectDelD.java b/java/src/Ice/_ObjectDelD.java deleted file mode 100644 index a784dde95a3..00000000000 --- a/java/src/Ice/_ObjectDelD.java +++ /dev/null @@ -1,314 +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 Ice; - -import Ice.Instrumentation.InvocationObserver; - -public class _ObjectDelD implements _ObjectDel -{ - public boolean - ice_isA(final String __id, java.util.Map<String, String> __context, InvocationObserver __observer) - throws IceInternal.LocalExceptionWrapper - { - final Current __current = new Current(); - __initCurrent(__current, "ice_isA", OperationMode.Nonmutating, __context); - - final BooleanHolder __result = new BooleanHolder(); - - IceInternal.Direct __direct = null; - try - { - __direct = new IceInternal.Direct(__current) - { - public DispatchStatus run(Ice.Object __servant) - { - __result.value = __servant.ice_isA(__id, __current); - return DispatchStatus.DispatchOK; - } - }; - } - catch(Throwable __ex) - { - IceInternal.LocalExceptionWrapper.throwWrapper(__ex); - } - - try - { - DispatchStatus __status = __direct.getServant().__collocDispatch(__direct); - assert __status == DispatchStatus.DispatchOK; - return __result.value; - } - catch(java.lang.Throwable __ex) - { - IceInternal.LocalExceptionWrapper.throwWrapper(__ex); - } - finally - { - try - { - __direct.destroy(); - } - catch(Throwable __ex) - { - IceInternal.LocalExceptionWrapper.throwWrapper(__ex); - } - } - return false; // Keep compiler happy. - } - - public void - ice_ping(java.util.Map<String, String> __context, InvocationObserver __observer) - throws IceInternal.LocalExceptionWrapper - { - final Current __current = new Current(); - __initCurrent(__current, "ice_ping", OperationMode.Nonmutating, __context); - - IceInternal.Direct __direct = null; - try - { - __direct = new IceInternal.Direct(__current) - { - public DispatchStatus run(Ice.Object __servant) - { - __servant.ice_ping(__current); - return DispatchStatus.DispatchOK; - } - }; - } - catch(Ice.UserException __ex) - { - UnknownUserException ex = new UnknownUserException(__ex.ice_name(), __ex); - throw new IceInternal.LocalExceptionWrapper(ex, false); - } - - try - { - DispatchStatus __status = __direct.getServant().__collocDispatch(__direct); - assert __status == DispatchStatus.DispatchOK; - } - catch(Throwable __ex) - { - IceInternal.LocalExceptionWrapper.throwWrapper(__ex); - } - finally - { - try - { - __direct.destroy(); - } - catch(Throwable __ex) - { - IceInternal.LocalExceptionWrapper.throwWrapper(__ex); - } - } - } - - public String[] - ice_ids(java.util.Map<String, String> __context, InvocationObserver __observer) - throws IceInternal.LocalExceptionWrapper - { - final Current __current = new Current(); - __initCurrent(__current, "ice_ids", OperationMode.Nonmutating, __context); - - final Ice.StringSeqHolder __result = new Ice.StringSeqHolder(); - - IceInternal.Direct __direct = null; - try - { - __direct = new IceInternal.Direct(__current) - { - - public DispatchStatus run(Ice.Object __servant) - { - __result.value = __servant.ice_ids(__current); - return DispatchStatus.DispatchOK; - } - }; - } - catch(Throwable __ex) - { - IceInternal.LocalExceptionWrapper.throwWrapper(__ex); - } - - try - { - DispatchStatus __status = __direct.getServant().__collocDispatch(__direct); - assert __status == DispatchStatus.DispatchOK; - return __result.value; - } - catch(Throwable __ex) - { - IceInternal.LocalExceptionWrapper.throwWrapper(__ex); - } - finally - { - try - { - __direct.destroy(); - } - catch(Throwable __ex) - { - IceInternal.LocalExceptionWrapper.throwWrapper(__ex); - } - } - return __result.value; // Keep compiler happy. - } - - public String - ice_id(java.util.Map<String, String> __context, InvocationObserver __observer) - throws IceInternal.LocalExceptionWrapper - { - final Current __current = new Current(); - __initCurrent(__current, "ice_id", OperationMode.Nonmutating, __context); - - final Ice.StringHolder __result = new Ice.StringHolder(); - - IceInternal.Direct __direct = null; - try - { - __direct = new IceInternal.Direct(__current) - { - public DispatchStatus run(Ice.Object __servant) - { - __result.value = __servant.ice_id(__current); - return DispatchStatus.DispatchOK; - } - }; - } - catch(Throwable __ex) - { - IceInternal.LocalExceptionWrapper.throwWrapper(__ex); - } - - try - { - DispatchStatus __status = __direct.getServant().__collocDispatch(__direct); - assert __status == DispatchStatus.DispatchOK; - return __result.value; - } - catch(Throwable __ex) - { - IceInternal.LocalExceptionWrapper.throwWrapper(__ex); - } - finally - { - try - { - __direct.destroy(); - } - catch(Throwable __ex) - { - IceInternal.LocalExceptionWrapper.throwWrapper(__ex); - } - } - return __result.value; // Keep compiler happy. - } - - public boolean - ice_invoke(String operation, Ice.OperationMode mode, byte[] inParams, ByteSeqHolder outParams, - java.util.Map<String, String> context, InvocationObserver observer) - { - throw new CollocationOptimizationException(); - } - - public void - ice_flushBatchRequests(InvocationObserver observer) - { - throw new CollocationOptimizationException(); - } - - public IceInternal.RequestHandler - __getRequestHandler() - { - throw new CollocationOptimizationException(); - } - - public void - __setRequestHandler(IceInternal.RequestHandler handler) - { - throw new CollocationOptimizationException(); - } - - // - // Only for use by ObjectPrx. - // - final void - __copyFrom(_ObjectDelD from) - { - // - // No need to synchronize "from", as the delegate is immutable - // after creation. - // - - // - // No need to synchronize, as this operation is only called - // upon initialization. - // - - assert(__reference == null); - assert(__adapter == null); - - __reference = from.__reference; - __adapter = from.__adapter; - } - - protected IceInternal.Reference __reference; - protected Ice.ObjectAdapter __adapter; - - protected final void - __initCurrent(Current current, String op, Ice.OperationMode mode, java.util.Map<String, String> context) - { - current.adapter = __adapter; - current.id = __reference.getIdentity(); - current.facet = __reference.getFacet(); - current.operation = op; - current.mode = mode; - - if(context != null) - { - current.ctx = context; - } - else - { - // - // Implicit context - // - ImplicitContextI implicitContext = - __reference.getInstance().getImplicitContext(); - - java.util.Map<String, String> prxContext = __reference.getContext(); - - if(implicitContext == null) - { - current.ctx = new java.util.HashMap<String, String>(prxContext); - } - else - { - current.ctx = implicitContext.combine(prxContext); - } - } - current.requestId = -1; - } - - public void - setup(IceInternal.Reference ref, Ice.ObjectAdapter adapter) - { - // - // No need to synchronize, as this operation is only called - // upon initialization. - // - - assert(__reference == null); - assert(__adapter == null); - - __reference = ref; - __adapter = adapter; - } -} |