|
|
|
|||||
|
Automatically Generating an ObjectFactory
Before I dive into the post proper, I'd just like to extend my appreciation for all the support I've got from these forums so far. Benoit and marc, I have taken your advice and stipped down my application to the bare minimum.
I'm still stuck on streaming and am examining the demoj\Ice\invoke example. One thing I do not understand is how the ObjectFactory methods were generated in the C.java class: Code:
private static class __F extends Ice.LocalObjectImpl implements Ice.ObjectFactory
{
public Ice.Object
create(String type)
{
assert(type.equals(ice_staticId()));
return new C();
}
}
private static Ice.ObjectFactory _factory = new __F();
public static Ice.ObjectFactory
ice_factory()
{
return _factory;
}
Code:
module Streaming {
class KodkodModel {
void solve();
};
interface KodkodModelReceiver {
void receiveKodkodModel(KodkodModel k);
};
};
Code:
identity: kodkodmodelreceiverobject
facet:
operation: receiveKodkodModel
Ice.NoObjectFactoryException
reason = "class sliced to Ice.Object, which is abstract"
type = "::Streaming::KodkodModel"
__________________
Zhi Quan Lee University of Auckland Department of Electrical and Computer Engineering http://se.auckland.ac.nz Project: An Integrated Automated Framework for Managing Dynamic Reconfiguration Supervised by Dr. Ian Warren and Dr. Jing Sun. With respect to their paper: http://csdl2.computer.org/persagen/D...09/ASE.2006.12 Homepage: http://zhi-lee.com |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| automatically run icepatch2server | incubator | Help Center | 3 | 12-08-2006 11:56 PM |
| About ObjectFactory | Anhur | Help Center | 1 | 10-16-2006 12:40 PM |
| How to publish the topic dynamicly and automatically in icestorm? | Jason Gao | Help Center | 4 | 08-24-2006 06:32 AM |
| Question about ObjectFactory | kongchoy | Help Center | 4 | 02-14-2006 03:07 AM |
| Generating code(.dll), Ice integration problem | Kruppy | Comments | 6 | 08-11-2005 10:24 PM |