Hello,
The "D2 4.X Plugins and Extensions" document explains that for any D2FS service which you want to call via OAH, which doesn't have signature of:
public List<Attribute> methodName(Context context, String id, List<Attribute> parameters
...it will be necessary to create a custom plugin action with a standard signature, as described in the Plugin action section
So, I want to call IBrowserService from my custom D2 service (implementing IPluginAction).
So far the only option that works for me is to use the generated D2FS client and use the GetBrowserContentRequest object.
I'm wondering if it is possible to inject or instantiate the the service somehow, so that I could use the IBrowserService interface instead.
I dug in the D2 source code and I found there is a factory class:
ID2Service service = D2ServiceFactory.getInstance().getService(ID2Service.class, serviceContext);
which takes D2ServiceProfile as an argument later on, but there is no Profile for Browse service.
Any ideas?