public RemoteObjectAdapterI(Ice.ObjectAdapter adapter) { _adapter = adapter; _testIntf = TestIntfPrxHelper.uncheckedCast(_adapter.add(new TestI(), _adapter.getCommunicator().stringToIdentity("test"))); _adapter.activate(); }
// Add servant to ASM and parent's _contents map. public void activate(Ice.ObjectAdapter a) { NodePrx thisNode = NodePrxHelper.uncheckedCast(a.add(this, _id)); if(_parent != null) { _parent.addChild(thisNode); } }
internal TestI(Ice.ObjectAdapter adapter1, Ice.ObjectAdapter adapter2, ServerLocatorRegistry registry) { _adapter1 = adapter1; _adapter2 = adapter2; _registry = registry; _registry.addObject(_adapter1.add(new HelloI(), adapter1.getCommunicator().stringToIdentity("hello"))); }
///<summary> /// Constructor /// </summary> /// <param name="factory">A BoxModuleFactoryPrx</param> /// <param name="propertyClassIceId">A string</param> /// <param name="propertyFunctionsIceIds">A string[]</param> /// <param name="identifier">A string</param> public PropertyBoxModuleI(BoxModuleFactoryPrx factory, string propertyClassIceId, string[] propertyFunctionsIceIds, Ice.ObjectAdapter adapter, Ice.Identity myIdentity, Modules.PropertyBoxModuleFactoryCreatorI.ValueFromPrx valueFromPrx, PropertyValue defaultValue) { this.factory = factory; this.propertyClassIceId = propertyClassIceId; this.propertyFunctionsIceIds = propertyFunctionsIceIds; this.myProxy = BoxModulePrxHelper.uncheckedCast(adapter.add(this,myIdentity)); this.adapter = adapter; this.valueFromPrx = valueFromPrx; this.defaultValue = defaultValue; this.setProperty("value",defaultValue); }
///<summary> /// Constructor /// </summary> /// <param name="propertyClassIceId">A string</param> /// <param name="propertyFunctionsIceIds">A string[]</param> /// <param name="identifier">A string</param> public PropertyBoxModuleFactoryCreatorI(string propertyClassIceId, string[] propertyFunctionsIceIds, string identifier, PropertyValue defaultValue, ValueFromPrx valueFromPrx, PropertyReapThread reaper, Ice.ObjectAdapter adapter, string settingModuleIdentifier) { this.propertyClassIceId = propertyClassIceId; this.propertyFunctionsIceIds = propertyFunctionsIceIds; this.identifier = identifier; this.valueFromPrx = valueFromPrx; this.reaper = reaper; this.defaultValue = defaultValue; this.myProxy = PropertyBoxModuleFactoryCreatorPrxHelper.uncheckedCast(adapter.add(this,Ice.Util.stringToIdentity(identifier))); this.settingModuleIdentifier = settingModuleIdentifier; }
// Add servant to ASM and parent's _contents map. public void activate(Ice.ObjectAdapter a) { var thisNode = NodePrxHelper.uncheckedCast(a.add(this, _id)); _parent.addChild(thisNode); }