00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 package cast.interfaces;
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 public final class _ComponentManagerDelD extends Ice._ObjectDelD implements _ComponentManagerDel
00024 {
00025 public void
00026 addComponentDescription(final cast.cdl.ComponentDescription description, java.util.Map<String, String> __ctx)
00027 throws IceInternal.LocalExceptionWrapper
00028 {
00029 final Ice.Current __current = new Ice.Current();
00030 __initCurrent(__current, "addComponentDescription", Ice.OperationMode.Idempotent, __ctx);
00031 IceInternal.Direct __direct = null;
00032 try
00033 {
00034 __direct = new IceInternal.Direct(__current)
00035 {
00036 public Ice.DispatchStatus run(Ice.Object __obj)
00037 {
00038 ComponentManager __servant = null;
00039 try
00040 {
00041 __servant = (ComponentManager)__obj;
00042 }
00043 catch(ClassCastException __ex)
00044 {
00045 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00046 }
00047 __servant.addComponentDescription(description, __current);
00048 return Ice.DispatchStatus.DispatchOK;
00049 }
00050 };
00051 try
00052 {
00053 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00054 if(__status == Ice.DispatchStatus.DispatchUserException)
00055 {
00056 __direct.throwUserException();
00057 }
00058 assert __status == Ice.DispatchStatus.DispatchOK;
00059 }
00060 finally
00061 {
00062 __direct.destroy();
00063 }
00064 }
00065 catch(Ice.SystemException __ex)
00066 {
00067 throw __ex;
00068 }
00069 catch(java.lang.Throwable __ex)
00070 {
00071 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00072 }
00073 }
00074
00075 public cast.cdl.ComponentDescription
00076 getComponentDescription(final String componentID, java.util.Map<String, String> __ctx)
00077 throws IceInternal.LocalExceptionWrapper,
00078 cast.CASTException
00079 {
00080 final Ice.Current __current = new Ice.Current();
00081 __initCurrent(__current, "getComponentDescription", Ice.OperationMode.Idempotent, __ctx);
00082 final cast.cdl.ComponentDescriptionHolder __result = new cast.cdl.ComponentDescriptionHolder();
00083 IceInternal.Direct __direct = null;
00084 try
00085 {
00086 __direct = new IceInternal.Direct(__current)
00087 {
00088 public Ice.DispatchStatus run(Ice.Object __obj)
00089 {
00090 ComponentManager __servant = null;
00091 try
00092 {
00093 __servant = (ComponentManager)__obj;
00094 }
00095 catch(ClassCastException __ex)
00096 {
00097 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00098 }
00099 try
00100 {
00101 __result.value = __servant.getComponentDescription(componentID, __current);
00102 return Ice.DispatchStatus.DispatchOK;
00103 }
00104 catch(Ice.UserException __ex)
00105 {
00106 setUserException(__ex);
00107 return Ice.DispatchStatus.DispatchUserException;
00108 }
00109 }
00110 };
00111 try
00112 {
00113 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00114 if(__status == Ice.DispatchStatus.DispatchUserException)
00115 {
00116 __direct.throwUserException();
00117 }
00118 assert __status == Ice.DispatchStatus.DispatchOK;
00119 return __result.value;
00120 }
00121 finally
00122 {
00123 __direct.destroy();
00124 }
00125 }
00126 catch(cast.CASTException __ex)
00127 {
00128 throw __ex;
00129 }
00130 catch(Ice.SystemException __ex)
00131 {
00132 throw __ex;
00133 }
00134 catch(java.lang.Throwable __ex)
00135 {
00136 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00137 }
00138 return __result.value;
00139 }
00140
00141 public java.util.Map<java.lang.String, cast.cdl.ComponentDescription>
00142 getComponentDescriptions(java.util.Map<String, String> __ctx)
00143 throws IceInternal.LocalExceptionWrapper
00144 {
00145 final Ice.Current __current = new Ice.Current();
00146 __initCurrent(__current, "getComponentDescriptions", Ice.OperationMode.Idempotent, __ctx);
00147 final ComponentDescriptionMapHolder __result = new ComponentDescriptionMapHolder();
00148 IceInternal.Direct __direct = null;
00149 try
00150 {
00151 __direct = new IceInternal.Direct(__current)
00152 {
00153 public Ice.DispatchStatus run(Ice.Object __obj)
00154 {
00155 ComponentManager __servant = null;
00156 try
00157 {
00158 __servant = (ComponentManager)__obj;
00159 }
00160 catch(ClassCastException __ex)
00161 {
00162 throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation);
00163 }
00164 __result.value = __servant.getComponentDescriptions(__current);
00165 return Ice.DispatchStatus.DispatchOK;
00166 }
00167 };
00168 try
00169 {
00170 Ice.DispatchStatus __status = __direct.servant().__collocDispatch(__direct);
00171 if(__status == Ice.DispatchStatus.DispatchUserException)
00172 {
00173 __direct.throwUserException();
00174 }
00175 assert __status == Ice.DispatchStatus.DispatchOK;
00176 return __result.value;
00177 }
00178 finally
00179 {
00180 __direct.destroy();
00181 }
00182 }
00183 catch(Ice.SystemException __ex)
00184 {
00185 throw __ex;
00186 }
00187 catch(java.lang.Throwable __ex)
00188 {
00189 IceInternal.LocalExceptionWrapper.throwWrapper(__ex);
00190 }
00191 return __result.value;
00192 }
00193 }