Login | Register
My pages Projects Community openCollabNet

Discussions > modules-dev > Persist More Data into Zargo file

argouml
Discussion topic

Back to topic list

Persist More Data into Zargo file

Author wkl
Full name Ken W K Lee
Date 2008-07-17 02:44:07 PDT
Message Hi all,

I'm developing a module that need to store extra data. These data are
associated with UML elements in the model. I would like to know if it is
possible to embed those data as another member file (i.e. not tagged
values) into a zargo project file without modifying the current
implementation.

My current founding so far is, we can't without modifying the current
implementation: after browsing the source codes I find out that
ZargoFilePersister is responsible for saving and loading a zargo file.
This ZargoFilePersister iterates each ProjectMember in the project and
call its associated MemberFilePersister for saving / loading a member
file. So to embed another member file, we implement a new ProjectMember
+ MemberFilePersister; extend ZargoFilePersister and overrides
getMemberFilePersister to return the appropriate MemberFilePersister;
finally set the extended ZargoFilePersister as the default for
PersistenceManager. Unfortuately MemberFilePersister is not a public
class; we need to put the subclass into argouml package. Please correct
me if any of my founding is wrong.

Thanks a lot


Ken

« Previous message in topic | 1 of 4 | Next message in topic »

Messages

Show all messages in topic

Persist More Data into Zargo file wkl Ken W K Lee 2008-07-17 02:44:07 PDT
     Re: [argouml-modules-dev] Persist More Data into Zargo file linus Linus Tolke 2008-07-20 08:13:25 PDT
         Re: [argouml-modules-dev] Persist More Data into Zargo file wkl Ken W K Lee 2008-08-01 03:55:03 PDT
             Re: [argouml-modules-dev] Persist More Data into Zargo file linus Linus Tolke 2008-08-02 04:44:47 PDT
Messages per page: