On Fri, Nov 19, 2010 at 12:22 PM, Neil Bartlett <[email protected]>wrote:

> Why do you feel that DS disobeys the ServiceFactory contract?
>

In the component.xml I have:

<implementation class="MyFactory"/>
<service><provide interface="MyService"/></service>

The class:

public class MyFactory implements ServiceFactory {
    public Object getService(Bundle bundle, ServiceRegistration
registration) {
        // .... returns object that implements MyService
    }
}

This throws ClassCastException somewhere in the Apache Felix code. Or is it
a bug in Apache Felix?

-- 
Ing. Martin Ždila
CTO

M-Way Solutions Slovakia s.r.o.
Letná 27, 040 01 Košice
Slovakia

tel:+421-908-363-848
mailto:[email protected]
http://www.mwaysolutions.com
_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to