I have created a bundle that registers a ServiceFactory object because I
want to control how the service is actually created.
I have created a further two bundles that are consumers of this service
and I use Aries blueprint to instantiate these consumers. What I have
found is that the ServiceFactory.getService() method is never called
when binding the service. Instead a proxy object is provided.
I would have thought that even though a proxy object is being provided,
Aries would still call through to the ServiceFactory object prior to
binding it to consumers. I created an example of what I am trying to
achieve here: https://github.com/jtkb/serviceexample. How does/should
Aries work with ServiceFactory objects?
Kerry
- Aries and ServiceFactory objects. Kerry
-