You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Christopher Lenz <cm...@gmx.de> on 2002/09/12 16:25:23 UTC

[digester] yet another proposal

Hi folks--

even though my two patches for Digester haven't generated any interest 
until now, I'm gonna open yet another Digester thread.

As some of you might have noticed, I've been playing a lot with Digester 
in the last couple of weeks. I've already summarized my motivations 
here, and they can be read in the mail archives:

http://nagoya.apache.org/eyebrowse/ReadMsg?listName=commons-dev@jakarta.apache.org&msgNo=14611
(just ignore the proposed solution)

I've now come up with what I believe to be a very good approach to 
getting the flexibility I require into future versions of Digester, 
while not complicating the API but rather making it simpler and more 
intuitive (IMHO, as always).

I've written down a brief overview of the approach in lovely HTML:

http://www.informatik.fh-wiesbaden.de/~clenz001/tmp/digesterng.html

I would love to hear your opinions on the proposed approach, positive, 
negative, whatever ;-).

-- 
Christopher Lenz
/=/ cmlenz at gmx.de


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [beanutils] second opinion on bug #12728 please

Posted by Roland Huss <Ro...@consol.de>.
robert burrell donkin <ro...@blueyonder.co.uk> writes:

> could someone take a look at
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=12728
> 
> and give a second opinion?
> 
> (i don't understand why this change is needed.)

The original code:

        PropertyDescriptor result = null;
        FastHashMap mappedDescriptors =
                getMappedPropertyDescriptors(bean);
        // ....

        if (result == null) {
            // not found, try to create it
            try {
                result =
                        new MappedPropertyDescriptor(name, bean.getClass());
            } catch (IntrospectionException ie) {
            }
        }
        if (result != null) {
            mappedDescriptorsCache.put(name, result);
        }
        return result;

where "FastHashMap getMappedPropertyDescriptors(bean)" above finally
results in a  

   return mappedDescriptorsCache.get(bean.getClass())

So, the values of the mappedDescriptorsCache-Map should probably be
FastHashMap's, not MappedPropertyDescriptor's like 'result'. So, from
my guess Alexander is wright with his analysis, at least from a
plausibility-point-of-view.

cu....
-- 
							...roland huss
						             consol.de

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


[beanutils] second opinion on bug #12728 please

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
(this is probably directed at scott or craig)

could someone take a look at

http://issues.apache.org/bugzilla/show_bug.cgi?id=12728

and give a second opinion?

(i don't understand why this change is needed.)

- robert


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: [digester] yet another proposal

Posted by robert burrell donkin <ro...@blueyonder.co.uk>.
On Thursday, September 12, 2002, at 03:25 PM, Christopher Lenz wrote:

> Hi folks--
>
> even though my two patches for Digester haven't generated any interest 
> until now,

i'm interested but ill...

i will definitely take a look at them as soon as i can give them the 
attention they deserve.

- robert


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>