Ok,
The DatabaseMap/MapBuilder class API should be a bit more stable now. I just
cleaned up some code that previously made it hard to deal with multiple
Map's.
Things that have changed:
In TubineMapBuilder (and your own MapBuilder classes), you should now simply
create your own DatabaseMap instead of attempting to get one from the
DBBroker. When the MapBuilder is added to the BasePeer cache, it has its
doBuild() method executed and the DatabaseMap that you created in your
MapBuilder is also cached in the DBBroker's class for speed. You should also
have your MapBuilder implement the MapBuilder interface.
The beauty of this is that now you can have multiple MapBuilders without
subclassing TurbineMapBuilder and refer to them easily by name in your Peer
classes.
I know it is really confusing if you don't understand this chunk of code, so
I'm going to try to document this functionality today while it is fresh in
my mind.
thanks,
-jon
--
Scarab -
Java Servlet Based - Open Source
Bug/Issue Tracking System
<http://scarab.tigris.org/>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]