You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Pete Haidinyak <ja...@cox.net> on 2009/02/11 08:29:22 UTC
inheritance / implementation question
If I have an interface in a common jar can a service in another bundle
implement it?
If I have an abstract class in a common jar can a service in another
bundle extend it?
If I have an abstract class in the same bundle can a service extend it?
If I extend a interface in a common jar in another bundle can I implement
it?
Thanks.
-Pete
PS This is really cool technology you guy are creating.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: inheritance / implementation question
Posted by Pete Haidinyak <ja...@cox.net>.
Thanks for the quick reply.
-Pete
On Tue, 10 Feb 2009 23:33:57 -0800, Rob Walker <ro...@ascert.com> wrote:
>
>
> Pete Haidinyak wrote:
>> If I have an interface in a common jar can a service in another bundle
>> implement it?
> Yes. This is a fairly common model where an API jar exports interfaces
> which other bundles provide implementations for
>> If I have an abstract class in a common jar can a service in another
>> bundle extend it?
> Also yes - subject to normal Java class and method scoping rules
>> If I have an abstract class in the same bundle can a service extend it?
> Also yes
>> If I extend a interface in a common jar in another bundle can I
>> implement it?
> Not totally sure I follow this, but I think it's a "yes"
>
> All of the above assume you have the necessary manifest headers to
> export / import the relevant packages etc.
>>
>>
>> PS This is really cool technology you guy are creating.
> It is cool - OSGi was already cool, Felix just makes it cooler ;)
>
> -- Rob
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: inheritance / implementation question
Posted by Rob Walker <ro...@ascert.com>.
Pete Haidinyak wrote:
> If I have an interface in a common jar can a service in another bundle
> implement it?
Yes. This is a fairly common model where an API jar exports interfaces
which other bundles provide implementations for
> If I have an abstract class in a common jar can a service in another
> bundle extend it?
Also yes - subject to normal Java class and method scoping rules
> If I have an abstract class in the same bundle can a service extend it?
Also yes
> If I extend a interface in a common jar in another bundle can I
> implement it?
Not totally sure I follow this, but I think it's a "yes"
All of the above assume you have the necessary manifest headers to
export / import the relevant packages etc.
>
>
> PS This is really cool technology you guy are creating.
It is cool - OSGi was already cool, Felix just makes it cooler ;)
-- Rob
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org