Jan 13th, 2012, 03:04 PM
Monitoring an XML file to trigger regeneration of ITD Metadata
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?
Jan 15th, 2012, 11:43 AM
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