Michael Hunger wrote: > Just had a look at the dependency visitor. > > Why do you have to models exposing their internals to the visitor, wouldn't > it be better to get a > Iterable<DependenycModel> dependenciesForScope(Class<? extends Annotation> > scope) in the model classes. So the filtering > could be internal and the usage would be much cleaner. As well as having the > law of demeter and behaviour and attributes > together. > > WDYT ?
Well, what we could do is to have that method in ApplicationModel, and which internally uses DependencyVisitor. I.e. DependencyVisitor becomes an implementation detail of that method, and ModelVisitor becomes an implementation detail of DependencyVisitor. Sounds ok? /Rickard _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

