Database and Navigation event factories automatically register the default event classes into the system. Developers can register additional event classes by declaring and configuring elements into the dbforms-config file, as shown in the example below:
<dbforms-config> <!-- dbforms config stuff here... --> <!-- define custom events --> <events> <!-- define database custom events here --> <database-events> <database-event id="insert2" type="insert" className="org.foo.bar.MyInsertEvent" /> <database-event id="update2" type="update" className="org.foo.bar.MyUpdateEvent" /> </database-events> <!-- define navigation custom events here --> <navigation-events> <navigation-event id="new2" type="navNew" className="org.foo.bar.MyNavNewEvent" /> </navigation-events> </events> </dbforms-config>