It's a easy question.
I have there some database-framework, which gives me a few methods working with them.
So now i want to extend that behavior. I write a wrapper-class and add a few more methods with that functionality i wanted to extend it.
Now the client get the wrapper-Object, but there I want to have access on my extended functionality and on the functionality the framework directly expose. So I have there an getter getting the the framework-object/objects.
Is that allowed? Or should i inject into the client the wrapper-object and the framework-objects separately? (so that the client must not fetch it out the wrapper-object) Are there any other solutions?