commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Vorburger (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LANG-503) GetterMethodsReflectionToStringBuilder (code attached, proposal for integration)
Date Thu, 14 May 2009 18:18:45 GMT

     [ https://issues.apache.org/jira/browse/LANG-503?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Vorburger updated LANG-503:
-----------------------------------

    Attachment: SomeTestBean.java
                GetterMethodsReflectionToStringBuilderTest.java
                GetterMethodsReflectionToStringBuilder.java

> GetterMethodsReflectionToStringBuilder (code attached, proposal for integration)
> --------------------------------------------------------------------------------
>
>                 Key: LANG-503
>                 URL: https://issues.apache.org/jira/browse/LANG-503
>             Project: Commons Lang
>          Issue Type: Improvement
>    Affects Versions: 2.4
>            Reporter: Michael Vorburger
>             Fix For: 3.0
>
>         Attachments: GetterMethodsReflectionToStringBuilder.java, GetterMethodsReflectionToStringBuilderTest.java,
SomeTestBean.java
>
>
> The ReflectionToStringBuilder "reflects" on fields... I needed one that works based on
public getters().
> This is useful for example with some kind of value objects where the internal private
field structure is not really what you would want to see in a toString(), but which have a
series of getters which were exactly what was frequently required to be dumped. There is probably
other uses too (e.g. works even with a SecurityManager - that's not what I wrote it for, but
could be an advantage over the ReflectionToStringBuilder?).
> I have hacked this and will attach a GetterMethodsReflectionToStringBuilder.java (which
extends ReflectionToStringBuilder; works fine, for my use) with a GetterMethodsReflectionToStringBuilderTest
(which may need some coverage extension, but is certainly a valid basic unit test) with its
SomeTestBean. I'll attach for your consideration to integrate this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message