Is it possible to implement custom RosterItemProvider?

I need to integrate roster with my custom database. Seems like RosterItemProvider is the way to go, but don’t know how to implement it, because it’s not an interface, it’s a class. Anyone?

Sorry, found similar topics. This one is closed.

and here