In recent times there have been lot of platform started providing libraries as part of their core offerings. It actually helps developer easily interacts with the platform and leverage the core functionality.
But the questions are as follows :
How to write the library in correct way ? How to include rules in library so that we can put constraint in client code base ? How to include proper documentation in library code ?
So in this article we would try to look into all these aspect and see some sample. Refer this - https://github.com/sughosneo/genlib
Similarly you can continue to include any of the specific or generic methods even callbacks if necessary either in genlib or AbstractGenLib class.