// ********************************************************************** // // Copyright (c) 2003 // ZeroC, Inc. // Billerica, MA, USA // // All Rights Reserved. // // Ice is free software; you can redistribute it and/or modify it under // the terms of the GNU General Public License version 2 as published by // the Free Software Foundation. // // ********************************************************************** package Ice; public class _ObjectDelD implements _ObjectDel { public boolean ice_isA(String __id, java.util.Map __context) throws IceInternal.NonRepeatable { Current __current = new Current(); __initCurrent(__current, "ice_isA", OperationMode.Nonmutating, __context); while(true) { IceInternal.Direct __direct = new IceInternal.Direct(__current); try { return __direct.facetServant().ice_isA(__id, __current); } finally { __direct.destroy(); } } } public void ice_ping(java.util.Map __context) throws IceInternal.NonRepeatable { Current __current = new Current(); __initCurrent(__current, "ice_ping", OperationMode.Nonmutating, __context); while(true) { IceInternal.Direct __direct = new IceInternal.Direct(__current); try { __direct.facetServant().ice_ping(__current); return; } finally { __direct.destroy(); } } } public String[] ice_ids(java.util.Map __context) throws IceInternal.NonRepeatable { Current __current = new Current(); __initCurrent(__current, "ice_ids", OperationMode.Nonmutating, __context); while(true) { IceInternal.Direct __direct = new IceInternal.Direct(__current); try { return __direct.facetServant().ice_ids(__current); } finally { __direct.destroy(); } } } public String ice_id(java.util.Map __context) throws IceInternal.NonRepeatable { Current __current = new Current(); __initCurrent(__current, "ice_id", OperationMode.Nonmutating, __context); while(true) { IceInternal.Direct __direct = new IceInternal.Direct(__current); try { return __direct.facetServant().ice_id(__current); } finally { __direct.destroy(); } } } public String[] ice_facets(java.util.Map __context) throws IceInternal.NonRepeatable { Current __current = new Current(); __initCurrent(__current, "ice_facets", OperationMode.Nonmutating, __context); while(true) { IceInternal.Direct __direct = new IceInternal.Direct(__current); try { return __direct.facetServant().ice_facets(__current); } finally { __direct.destroy(); } } } public boolean ice_invoke(String operation, Ice.OperationMode mode, byte[] inParams, ByteSeqHolder outParams, java.util.Map context) throws IceInternal.NonRepeatable { throw new CollocationOptimizationException(); } public void ice_invoke_async(AMI_Object_ice_invoke cb, String operation, Ice.OperationMode mode, byte[] inParams, java.util.Map context) { 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 context) { current.adapter = __adapter; current.id = __reference.identity; current.facet = __reference.facet; current.operation = op; current.mode = mode; current.ctx = context; } 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; } }