[Laszlo-dev] kernel data loader API updated
Henry Minsky
henry.minsky at gmail.com
Mon Aug 21 18:39:28 EDT 2006
http://wiki.openlaszlo.org/KernelAPIProposal#HTTP_Loader
This is the currently implemented API. Probably needs another pass at some
point, there are
two places where LFC objects are being passed across the API that could be
done more neatly:
1) The constructor for LZHTTPLoader takes an LzDataset as an arg. This is
sort of a violation of
the kernel barrier abstraction. I didn't want to touch LzLoader on this
pass, but for the next pass over
this code I am planning to use callbacks and the LzXMLParser and
LzXMLTranslator APIs to
make this more modular across the LFC/kernel boundary.
2) The loadSuccess callback passes an LzDataElement back. It should instead
pass a string or native XML object
which is then passed to the LzXMLTranslator API, see above.
--
Henry Minsky
Software Architect
hminsky at laszlosystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.openlaszlo.org/pipermail/laszlo-dev/attachments/20060821/5dabdced/attachment.html
More information about the Laszlo-dev
mailing list