[
https://issues.apache.org/jira/browse/FELIX-4649?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Irakli Betchvaia closed FELIX-4649.
-----------------------------------
It works. Thank You.
> 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
> Assignee: Carsten Ziegeler
> 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)