felix-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/FELIX-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14156387#comment-14156387
] 

Irakli Betchvaia commented on FELIX-4649:
-----------------------------------------

Just for clarification: we'd like to configure bundles in start(...) method. In our case,
it's a GUI that needs the configuration data before it's completely started (e.g. skin, timeouts,
...). The defult values are not stored within the source code, but in configuration files.
Previously we used Equinox implementation where we had the desired behaviour. Now we'd like
to switch to Felix but found the issue described above.

> 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
>
> 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