> I was thinking about how to initialize the handler, but what about the case when it's an external class from outside the framework?

So what? I never told you passing of the object instance should be forbidden.