Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

How to get an ExtensionManager instance from within a plugin

$
0
0



Hello,


We are developing a plugin using the HTML bridge. We need to get access to the Extension object corresponding to our extension so we can read some information we saved away wen the plugin was registered. I haven't been able to figure out how to get access to that object, or to the ExtensionManager to look it up.


If we had credentials, I know I could create a new ServiceInstance object, and use it to get the ExtensionManager, and then look up our extension by its key. But we don't want to store any credentials, so this option is not available.


I was hoping that the plugin container would make available some services that I could use (perhaps provide objects that I could get injected by Spring). In fact, I was secretly hoping I could get the ServiceInstance object injected in this way. But I wasn't able to do so (perhaps because of some defect in my code).


Could anyone tell me how I can get access to an ExtensionManager instance when running in a plugin inside vCenter?


Thanks!


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>