The aim of this framework is to establish a consistent structure for Salesforce triggers to achieve the following:
There are many well published trigger frameworks and all have merits in that they improve the manageability of code, correctly orders execution, however as with everything, good technologists will continually evolve a model. We were impressed with Tony Scotts http://developer.force.com/cookbook/recipe/trigger-pattern-for-tidy-streamlined-bulkified-triggers pattern as it simplifies the trigger. Independently to Hari Krishnan https://krishhari.wordpress.com/tag/apex-trigger-design-pattern/ We too noticed some room for improvement because Tony’s framework would require continual adaption of the TriggerFactory class for every new trigger that is developed. The solution that we came up with was similar to the 2nd framework above. However, we were concerned that all frameworks to date have only been designed to solve the old-age problem of code manageability and order of execution, but we always incorporated far more into our frameworks, notably the following additional features:
To learn more download the attached document which includes the code and further context of the framework