Exemple #1
0
 internal InitialI(Ice.ObjectAdapter adapter)
 {
     _simple = new Simple();
     _simple.message = "a message 4 u";
     
     _printer = new PrinterI();
     _printer.message = "Ice rulez!";
     _printerProxy = PrinterPrxHelper.uncheckedCast(adapter.addWithUUID(_printer));
     
     _derivedPrinter = new DerivedPrinterI();
     _derivedPrinter.message = _printer.message;
     _derivedPrinter.derivedMessage = "a derived message 4 u";
     adapter.addWithUUID(_derivedPrinter);
 }
Exemple #2
0
 public InitialI(Ice.ObjectAdapter adapter)
 {
     _ca = Test.MA.CAPrxHelper.uncheckedCast(adapter.addWithUUID(new CAI()));
     _cb = Test.MB.CBPrxHelper.uncheckedCast(adapter.addWithUUID(new CBI()));
     _cc = Test.MA.CCPrxHelper.uncheckedCast(adapter.addWithUUID(new CCI()));
     _cd = Test.MA.CDPrxHelper.uncheckedCast(adapter.addWithUUID(new CDI()));
     _ia = Test.MA.IAPrxHelper.uncheckedCast(adapter.addWithUUID(new IAI()));
     _ib1 = Test.MB.IB1PrxHelper.uncheckedCast(adapter.addWithUUID(new IB1I()));
     _ib2 = Test.MB.IB2PrxHelper.uncheckedCast(adapter.addWithUUID(new IB2I()));
     _ic = Test.MA.ICPrxHelper.uncheckedCast(adapter.addWithUUID(new ICI()));
 }
 public Helper(Ice.ObjectAdapter adapter, string[] localePrefs, ModulesManager manager)
 {
     this.adapter = adapter;
     this.localePrefs = localePrefs;
     Debug.WriteLine("Creating BoxModuleIceFactories...");
     this.boxModuleIceFactories = new BoxModuleIceFactories( this );
     Debug.WriteLine("Creating ManagersEngine...");
     this.managersEngineI = new ManagersEngineI(adapter,this, manager);
     this.managersEnginePrx = ManagersEnginePrxHelper.uncheckedCast(
         adapter.addWithUUID(managersEngineI));
 }
 ///<summary>
 /// Constructor
 /// </summary>
 public ManagersEngineI(Ice.ObjectAdapter adapter, Helper helper, ModulesManager manager)
 {
     Debug.WriteLine("Creating Output...");
     lnkOutputI = new OutputI();
     outputPrx = OutputPrxHelper.uncheckedCast(
         adapter.addWithUUID(this.lnkOutputI));
     Debug.WriteLine("Creating BoxModuleLocker...");
     lnkBoxModuleLockerI = new BoxModuleLockerI(manager);
     boxModuleLockerPrx = BoxModuleLockerPrxHelper.uncheckedCast(
         adapter.addWithUUID(this.lnkBoxModuleLockerI));
     Debug.WriteLine("Creating BoxModuleValidator...");
     lnkBoxModuleValidatorI = new BoxModuleValidatorI(manager);
     boxModuleValidatorPrx = BoxModuleValidatorPrxHelper.uncheckedCast(
         adapter.addWithUUID(this.lnkBoxModuleValidatorI));
     Debug.WriteLine("Creating BoxModuleProjectInformation...");
     lnkBoxModuleProjectInformationI = new BoxModuleProjectInformationI(manager);
     boxModuleProjectInformationPrx =
         BoxModuleProjectInformationPrxHelper.uncheckedCast(
         adapter.addWithUUID(this.lnkBoxModuleProjectInformationI));
     Debug.WriteLine("Creating ManagersLocator...");
     lnkManagersLocatorI = new ManagersLocatorI(adapter, helper);
     managersLocatorPrx = ManagersLocatorPrxHelper.uncheckedCast(
         adapter.addWithUUID(this.lnkManagersLocatorI));
 }
 public PropertyBoxModuleFactoryI(string propertyClassIceId,
     string[] propertyFunctionsIceIds,
     BoxModuleFactoryCreatorPrx myFactoryCreatorProxy,
     string[] localePrefs,
     PropertyValue defaultValue,
     PropertyBoxModuleFactoryCreatorI.ValueFromPrx valueFromPrx,
     Ice.ObjectAdapter adapter,
     string settingModuleIdentifier)
 {
     this.propertyClassIceId = propertyClassIceId;
     this.propertyFunctionsIceIds = propertyFunctionsIceIds;
     //this.localePrefs = localePrefs;
     this.myFactoryCreatorProxy = myFactoryCreatorProxy;
     this.defaultValue = defaultValue;
     this.valueFromPrx = valueFromPrx;
     this.myProxy = BoxModuleFactoryPrxHelper.uncheckedCast(adapter.addWithUUID(this));
     this.settingModuleIdentifier = settingModuleIdentifier;
 }