Copied to
https://issues.jboss.org/browse/WINDUP-120 , let's continue there.
On 15.7.2014 18:22, Ondrej Zizka wrote:
Now to the implementation.
Many models, basically all root models, will have (should have)
visuals - @Title @Description @Icon
references - @FoundBy @Solutions @References
@Title, @Decription, and @Icon can be derived from the data contained
+ annotations data (E.g. EL + values). I have some coding in progress
for this.
@FoundBy, @Solutions, and @References will need some identical code in
each model. Using inheritance is nonsense in this case.
So instead of adding all that boilerplate code to every model where
it's needed (even worse, formatted by the current terrible formatting
rules),
I'd create a class containing all these, add it as a member to the
model. And instead of @Adjacency, I'd use @ReportItemInfo and a
MethodHandler to store it directly to the given vertex, as if the
adjacencies where right in there. Or not? Do we want additional
intermediate vertex as a wrapper?