logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Sicker <boa...@gmail.com>
Subject Re: Registering converters
Date Tue, 03 Jun 2014 02:35:39 GMT
Not for the factory/builder stuff! Unless we cached more data about plugins
like that.


On 2 June 2014 21:32, Gary Gregory <garydgregory@gmail.com> wrote:

> It would only happen at compile time... so who cares?
>
> Gary
>
>
> On Mon, Jun 2, 2014 at 10:29 PM, Matt Sicker <boards@gmail.com> wrote:
>
>> In regards to the parameter reflection stuff, I can't find anything in
>> 1.6 other than using
>> Introspector.getBeanInfo(Class<?>).getMethodDescriptors() and
>> MethodDescriptor.getParameterDescriptors(). From what I recall,
>> Introspector is rather slow for this sort of situation and is mostly used
>> in GUIs that deal with JavaBeans.
>>
>>
>> On 2 June 2014 21:20, Matt Sicker <boards@gmail.com> wrote:
>>
>>> On 2 June 2014 21:14, Gary Gregory <garydgregory@gmail.com> wrote:
>>>>
>>>> Well, my point is that you'd just use an annotation. What the
>>>> annotation is, I do not know. I'm not crazy about the category idea in
>>>> general because I am one typo away on a late night from getting stuck. If
>>>> the code does not compile, that's easier to fix.
>>>>
>>>
>>> I agree on that. It's terribly frustrating to deal with runtime problems
>>> that should have been detectable at compile time. Perhaps instead of
>>> categories we had a meta-annotation that describes a plugin category, and
>>> then plugins can use a category annotation instead of the parameter? We
>>> could really use annotations like this to make things more typed with less
>>> typing.
>>>
>>> --
>>> Matt Sicker <boards@gmail.com>
>>>
>>
>>
>>
>> --
>> Matt Sicker <boards@gmail.com>
>>
>
>
>
> --
> E-Mail: garydgregory@gmail.com | ggregory@apache.org
> Java Persistence with Hibernate, Second Edition
> <http://www.manning.com/bauer3/>
> JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
> Spring Batch in Action <http://www.manning.com/templier/>
> Blog: http://garygregory.wordpress.com
> Home: http://garygregory.com/
> Tweet! http://twitter.com/GaryGregory
>



-- 
Matt Sicker <boards@gmail.com>

Mime
View raw message