Niclas Hedhman wrote:
> On Wed, Jun 11, 2008 at 10:23 PM, Rickard Öberg <[EMAIL PROTECTED]> wrote:
>
>> Alright, the cleanup and shuffle-around is done now. The only remaining
>> part which does not compile currently is the RDF-output of the model.
>
> I probably had a hunch, and it was never fully complete.
>
> So, I can take charge of this and "start over" in a couple of days,
Don't worry, I'm rewriting it now using the new ModelVisitor. It's quite
pretty, and not that much work (just started though, so might get
screwed later). Also, I created a DependencyVisitor as a subclass of
ModelVisitor so you can now easily traverse only the dependencies by
using that, like so:
ApplicationModel applicationModel = ...;
applicationModel.visitModel(new DependencyVisitor(Service.class))
{
public void visitDependency(DependencyModel serviceDependency)
{
.. do something with the service dependency ..
}
});
It seems like creating some specialized visitors can make it a whole lot
easier to work with the model, now that the traversing is in one place
only (the model itself).
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev