Built-in Observers
Post-Process Observers
There are two built-in observers, and each has been implemented as a post-process
observer. This means that the observer is notified after the standard event logic has been
executed.
- Progress Monitor
- The progress monitor is used to show the work that is performed during an event
that may take an extended period of time, or that is made up of one or more smaller events.
- Event Logging
- The event logging observer is used to show the activity that occurred during
processing of an event. This observer includes a number of methods that can be accessed
from the ProvideX Event Manager or other events to add information to the log.
Standard External Observers
There are several external observers that are included with the plug-in. These observers
follow the guidelines outlined in this document and can be used as examples for how to write an
external observer.
These observers fall into one (or both) of the following categories:
- Enhancements/Add-on to existing Events
- Contributed Tools
- Copyright Year
- This observer will be triggered during the pre-process of a build and will create
a temporary copy of the source file and will substitute the modification year of the
original source file in place of the "%(copyright-year)%" tag found at the beginning (first
1000 characters) of the source file. It will also be triggered during the post-process of a
build where it will delete the temporary source file. The source code is included
with the plug-in.
- Set Modification Date
- This observer will be triggered during the post-process of a build and will set
the modification date for the output file to match the modification date of the source
file. The source code is
included with the plug-in.