Re: Fwd: [xmlWiki-developers] Foundation classes
Brought to you by:
elhugo
From: Hugo G. <xm...@ne...> - 2001-10-28 01:14:50
|
These are my comments. >> >>Class - Description >> >>WikiPage - Encapsulates one page, however that is represented, and will >>be passed around from the database, parser, HTML generator, etc... So the responsibility of this class is to get encapsulate the a page. Would it be responsible in setting it's own state or would its state be set by another entity? >> >>WikiContext - This would be a singleton which would contain common >>configuration information. Users typically call getInstance() on it, and >>then use that object to learn about the environment, policies/setting, and >>get references to other objects. Which objects interarct with this one? >> >>WikiDB - Abstracts the database functions. One would probably call >>getLocalDB() on a WikiContext object to get a reference, and then this >>class would handle page creation/deletion/retrieval/update. I would expect >>that most of the functions would be passing WikiPage references. The guts >>of this class would then attach to a production DB, text file interface, >>etc. >> So, this is the class responsible in managing the connections to the page repository? Who would call the getLocalDB()? -H |