-
Jan 13th, 2012, 03:04 PM
#1
Monitoring an XML file to trigger regeneration of ITD Metadata
Hi all,
I am developing an add-on that will be monitoring some XML files and I'd like the add-on to trigger the regeneration of an ITD metadata. I tried to use file monitoring but it was unsuccessful. My questions are:
1. Is there a proper (right) way in Roo to monitor file change?
2. After the file change event occurred, how could I trigger the regeneration of an ITD metadata programmatically?
Thank you
Chanwit
-
Jan 15th, 2012, 11:43 AM
#2
Finally I've found steps to achieve these.
1. I have my metadataProvider to implements FileEventListener.
2. To trigger regeneration of my ITD metadataProvider, I call metadataService.evictAndGet(mid).
and call notifyDownstream(mid), where "mid" is a metadata identification string starting with "MID:".
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules