Hi Geir,

Your EventCartridge architecture looks cool to me - or it solves my problem
at least :-).  I haven't done a full range of tests but I can happily
replace XML entities.

Just one problem:  If you don't add NullReferenceEventHandlers the
getNullReferenceHandlerArray() method returns null.  With a null reference
you get a NPE in line 243...

I'm not exactly clued up with all this, so allow me one question.  Would it
be better to instead of this:

            Object[] oarr = nrehList.toArray();
            nrehArr = new NullReferenceEventHandler[ oarr.length ];
            System.arraycopy( oarr, 0, nrehArr, 0, oarr.length);

do this?

            NullReferenceEventHandler[] dummy = new
NullReferenceEventHandler[0];
            nrehArr = nrehList.toArray(dummy);

I haven't tested it but my intuition says that the second would be faster
that copying arrays around?


Will EventCartridge make its way into the main source tree?  What needs to
be done before it can happen?

~ Leon

Reply via email to