Runtime Mixins()
Last updated
Last updated
You can use the mixins()
binder method or mixins
annotation to define that a mapping should be mixed in with one or more set of templates. It will then at runtime inject all the methods in those templates and mix them into the target object as public methods.
This will grab all the methods in the base.cfm
and model.cfm
templates and inject them into the target mapping as public methods. Awesome right?
Tip The list of templates can include a
.cfm
extension or none at all