• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 25. Building and Storing Annotat... > Step 2: Implementing the KeeperAnnot...

Step 2: Implementing the KeeperAnnotations Adapter

Implementing the keeper annotations adapter is simply a matter of implementing the IAnnotations interface's mapping methods. The tricky part of the implementation is to find the object that is the annotation keeper. This should be no problem, as long as the object has a location and a keeper is available in the path of the object.

This first issue is important. When an object has just been created, an ObjectCreatedEvent event is sent out, and the Dublin Core mechanism listens to it. The Dublin Core mechanism then tries to set the creation and modification dates on the object, using annotations. This is, of course, a problem because the object has no location at this point. In these cases, you need some sort of temporary storage that can keep the annotation until the object has a location.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint