[DISCUSS] [DELTASPIKE-54] dynamic literal-helper for simple annotations

2012-01-18 Thread Gerhard Petracek
hi @ all, like DELTASPIKE-53 this ticket is also related to DELTASPIKE-45. for users it might be useful to use: SimpleLiteral.of(MySimpleAnnotation.class) in combination with the builder methods instead of implementing literals manually (just for using them with the default values). at [1] you

Re: [DISCUSS] [DELTASPIKE-54] dynamic literal-helper for simple annotations

2012-01-18 Thread Pete Muir
+1. Solder offers the same - https://github.com/seam/solder/blob/master/api/src/main/java/org/jboss/solder/reflection/AnnotationInstanceProvider.java Solder also allows you to pass in a map of values. Does CODI have a ComplexLiteral that does this? On 18 Jan 2012, at 17:08, Gerhard Petracek

Re: [DISCUSS] [DELTASPIKE-54] dynamic literal-helper for simple annotations

2012-01-18 Thread Pete Muir
My preference would be to take best of both here - I think a lot of time the SimpleLiteral is enough (and AnnotationInstanceProvider should have such a method) but that it can be useful to produce a literal with members as well. I don't love the lack of type safety though, in the map of values,

Re: [DISCUSS] [DELTASPIKE-54] dynamic literal-helper for simple annotations

2012-01-18 Thread Gerhard Petracek
ok - so let's proceed as usual. i'll update jira our jira tickets. (the small tool of myfaces codi just came to my mind while reviewing DELTASPIKE-45 - but back than i marked it as overlap already.) @matt: thx for the link regards, gerhard 2012/1/18 Matt Benson gudnabr...@gmail.com On Wed,