Importing Event Handlers
You can use an event handler in more than one model. To import existing event
handlers created in one model into another model, you can do either of the following:
- Copy the .java files into the \scripts\src folder within your model folder.
You must then rebuild event handlers in order to incorporate them into the
.jar file for the model.
- Copy the .jar file into the \scripts\lib folder within your model folder.
Since the default .jar file for all models is vhi_model.jar, you may need
to rename the .jar file that you are importing. By default, you do not have
to rebuild event handlers. Host Integrator automatically loads the .jar file
as soon as it is detected.
Note: The rebuild process will attempt to rebuild all event handlers.
You must manually delete any event handler .java files from the \scripts\src
folder if you do not want them included in the .jar file.