felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Carsten Ziegeler (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-4649) Get MetaTypeInformation while bundle is starting
Date Thu, 02 Oct 2014 12:09:33 GMT

     [ https://issues.apache.org/jira/browse/FELIX-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Carsten Ziegeler updated FELIX-4649:
------------------------------------
    Fix Version/s: metatype-1.0.12

> Get MetaTypeInformation while bundle is starting
> ------------------------------------------------
>
>                 Key: FELIX-4649
>                 URL: https://issues.apache.org/jira/browse/FELIX-4649
>             Project: Felix
>          Issue Type: Wish
>          Components: Metatype Service
>    Affects Versions: metatype-1.0.10
>            Reporter: Irakli Betchvaia
>             Fix For: metatype-1.0.12
>
>
> Problem
> Gathering metatype information as long as bundle is not in state Bundle.ACTIVE MetaTypeService
returns null in method MetaTypeserviceImpl.getMetaTypeInformation. We'd like to have the MetatTypeInformation
returned also in state Bundle.STARTING
> Solution
> Please replace the following in MediaTypeServiceimpl.java Method getMetaTypeInformation
> {code:title=MediaTypeServiceimpl.java|borderStyle=solid}
> if ( bundle.getState() == Bundle.ACTIVE )
> {
>         putMetaTypeInformationInternal( bundle, mti );
> }
> else
> {
>         impl = mti;
>         mti = null;
> }
> {code}
> by
> {code:title=MediaTypeServiceimpl.java|borderStyle=solid}
> if ( bundle.getState() == Bundle.ACTIVE || bundle.getState() == Bundle.STARTING )
> {
>         putMetaTypeInformationInternal( bundle, mti );
> }
> else
> {
>         impl = mti;
>         mti = null;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message