I just read the Params code and I think we are wasting some memory and time.

Since Properties extends Hashtable there is no reason to have both and have
both store the same info.  Not only that the getProperty does the work
(simple albeit) of our getParam methods.

Doing this would also make read params much faster since we would not need
to iterate through properties after we called props.load().  The job would
be done.

Finally, properties has a nice way of handling defaults involving putting
the defaults into a separate Properties class and passing that class to it's
constructor.  We would not need to use this to gain what I mentioned but I
think it is nice because you don't need to reference the default you ask for
a Parameter.  I am using this mechanism for Freeloader properties.


What do you think?

Paul

:)


_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to