deltaspike-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerhard Petracek <gerhard.petra...@gmail.com>
Subject Re: refactoring of @ConfigProperty handling
Date Wed, 13 Jun 2012 12:42:45 GMT
+1
the current prototype showed that converters get pretty hard easily.

regards,
gerhard



2012/6/13 Mark Struberg <struberg@yahoo.de>

> Hi!
>
> Please don't touch the ConfigPropertyExtension and Converter stuff for now
> as I'm currently refactoring it.
>
> My current approach is to do the same with simple producer methods instad
> of the ProcessInjectionTarget + Bean handling.
> This should be much easier.
>
>
> Also this doesn't require all the complex Converter handling. If a user
> needs an own config value class, he can simply write a producer for it
> himself. This is much easier and also much more CDI-like than having to
> register an own Converter<T> in a ConverterFactory, etc
>
> Just to keep this clear: the @ConfigProperty annotation and features will
> remain intact, I only gonna change the implementation behind.
>
> The only thing which might change is:
>
> * to move the meta-annotation stuff to proper CDI @Stereotype handling.
>
>
> * to move all the Converter + registering + annotation parsing +
> InjectionTarget + bean handing (wtf is this complex!) to a simple
> @Qualifier + producer method a user can write himself
>
>
>
> I'll keep you updated ...
>
> LieGrue,
> strub
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message