We can publish a single OSGi service instance (object) under two interfaces.

Azeez

On Wed, Sep 19, 2012 at 11:10 PM, Senaka Fernando <[email protected]> wrote:

> Hi Pradeep,
>
> The Registry API bundle has the APIs (just the interfaces). The Registry
> Kernel bundle (registry.core) has the implementations. The OSGi service is
> registered from the registry.core (which is correct). The OSGi service is
> published using an interface from registry.core, which is wrong. But, a
> change to this would mean an API level change and multiple components will
> be affected. But, you probably can create an interface at registry.api and
> extend it at registry.core and then publish the implementation using both
> interfaces, and deprecate what's outdated. Or you could plan for a proper
> fix in C5.
>
> Thanks,
> Senaka.
>
>
> On Wed, Sep 19, 2012 at 11:07 AM, Pradeep Fernando <[email protected]>wrote:
>
>> Hi,
>>
>> It says that the  RegistryService is registered under,
>>
>> osgi> services (objectclass=*RegistryService)
>> {org.wso2.carbon.registry.core.service.RegistryService}={service.id=98}
>>   Registered by bundle: org.wso2.carbon.registry.core_4.0.2 [119]
>>   Bundles using service:
>>     org.wso2.carbon.ndatasource.core_4.0.2 [114]
>>     org.wso2.carbon.application.deployer_4.0.2 [95]
>>     org.wso2.carbon.core_4.0.2 [101]
>>     org.wso2.carbon.registry.server_4.0.2 [120]
>>     org.wso2.carbon.tomcat.ext_4.0.2 [130]
>>     org.wso2.carbon.user.mgt_4.0.0 [137]
>>     org.wso2.carbon.core.services_4.0.2 [105]
>>     org.wso2.carbon.server.admin_4.0.2 [125]
>>     org.wso2.carbon.ui_4.0.2 [133]
>>
>>
>>
>> AFAIK, we separated out the API from the Registry bundle so that we
>> can make use of the API without depending on the Registry dependency.
>> Can somebody from registry team explain this usage please.
>>
>> thanks,
>> --Pradeep
>>
>
>
>
> --
> *Senaka Fernando*
> Member - Integration Technologies Management Committee;
> Technical Lead; WSO2 Inc.; http://wso2.com*
> Member; Apache Software Foundation; http://apache.org
>
> E-mail: senaka AT wso2.com
> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818
> Linked-In: http://linkedin.com/in/senakafernando
>
> *Lean . Enterprise . Middleware
>
>


-- 
*Afkham Azeez*
Director of Architecture; WSO2, Inc.; http://wso2.com
Member; Apache Software Foundation; http://www.apache.org/
* <http://www.apache.org/>**
email: **[email protected]* <[email protected]>* cell: +94 77 3320919
blog: **http://blog.afkham.org* <http://blog.afkham.org>*
twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez>
*
linked-in: **http://lk.linkedin.com/in/afkhamazeez*
*
*
*Lean . Enterprise . Middleware*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to