about implement "folder" with nanning-aop

yiming wang <[email protected]> Fri, 20 Jun 2003 01:10:24 -0700 (PDT)
Newsgroups gmane.comp.java.nanning.devel
Message-ID <[email protected]>
hi all,

Recently, i am very interesting to convert some
oo-design to aop-design with nanning. so , i try to 
implement "folder" with nanning.

normally under oo design:
 Folder -extends-> FolderItem

when i use aop to design this:
  Folder -extends-> FolderItem
    |                    |
  FolderImpl -extends-> FolderItemImpl

FolderItem like a leaf, so i add class-level-tag
"nodechild"
Folder like a container, so i add class-level-tag
"nodeparent", and more, Folder is a FolderItem, so
Folder inherited attribute "nodechild" , cool!

also, i design the introductions "NodeChild" and 
"NodeParent", i think they are very general for
other object to use.

all source code and test case in the attached file 
"folder.zip".

how do you think about my design? any comments?
Thanks for your reply!

wang yiming
2003.6.20

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
folder.zip (application/x-zip, 7.5 KB) - not displayed