Hi,

On Mon, Feb 16, 2009 at 10:18 PM, Niclas Hedhman <[email protected]> wrote:
> On Mon, Feb 16, 2009 at 8:39 PM, Tonny Kohar <[email protected]> wrote:
>
>> What is the best/recommended way to traverse the model. So far as I am
>> understand there are 3 ways to do
>> - using the core-runtime structure. For this one I am stuck at
>> EntitiesInstance because it does not have methods that return list of
>> entities, It have method that return entity but I must supply the id,
>> etc. which I do not have, I want to get all the entities
>
> Never use core-runtime. It may not be stable at all.

Sure no problem.

>
>> - using the core-spi structucture. All is only stub, nothing is implemented 
>> here
>> - using my own visitor, same technique like the visualizer doing,
>
> Isn't these two the same thing??

Yes, it is the same things. It is me who is thought wrongly about the design.
I thought the interface will be implemented eg:
- ModuleDetailDescriptor (Visualizer) is implementing ModuleDescriptor
(Core SPI)
- LayerDetailDescriptor (Visualizer) is implementing LayerDescriptor (Core SPI)
but they are not. Anyways, I got it now.

>> which means reinvent the wheel
>
> Well, each visitor implementation has different needs, so a lot
> depends on what you want to do whether the visitors will end up being
> similar.

Yes each implementation certainly have different needs. Just
suggestion, do you think is a good idea to provide default (traverse
all in structure order or type order) as part of library  ?

Cheers
Tonny Kohar
--
KIYUT
imagine, design, create ...
http://www.kiyut.com

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to