deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pete Muir <pm...@redhat.com>
Subject Re: [DISCUSS] [DELTASPIKE-54] dynamic literal-helper for simple annotations
Date Wed, 18 Jan 2012 17:17:46 GMT
+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 wrote:

> 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 can see the util we have in myfaces codi for it. if we agree on
> it, i'll push this class.
> 
> regards,
> gerhard
> 
> [1] http://s.apache.org/Ffp


Mime
View raw message