Technically speaking, there is a chance to get the bundlecontext of the
bundle, which the class is part of. And from there get references to
other services. But that's not easy to implement, and additionally this
reference is not managed, thus you need to take care of the lifecycle
events of the surrouding services. Probably not what you want.Instead I
would suggest that you convert your custom class into an OSGI service
(or Sling model), because then the full tooling is available, and the
frame...