Making a fragment extendable

I like the way OpenMRS reference application can be extended; stuff like define an extension point in either a module’s app or extension json file and that does the majic; i strongly want to avail the same support on some of the fragments i write; so Question; How can i make my fragment extendable in the same format

CC: @dkayiwa, @wyclif, @darius

Your own module can define its own extension points (like the coreapps module does here), and then look up whichever extensions other modules have introduced to attach to its extension point.

In other words there is nothing magical or special about how the reference application does this. It’s just a collection of modules (that require the appframework module) and your own modules can do exactly the same thing (inside or outside of the reference application).

1 Like