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

Irakli Betchvaia updated FELIX-4649:
------------------------------------
    Description: 
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}

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

if ( bundle.getState() == Bundle.ACTIVE )
{
        putMetaTypeInformationInternal( bundle, mti );
}
else
{
        impl = mti;
        mti = null;
}

by

if ( bundle.getState() == Bundle.ACTIVE || bundle.getState() == Bundle.STARTING 
)
{
        putMetaTypeInformationInternal( bundle, mti );
}
else
{
        impl = mti;
        mti = null;
}



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

Reply via email to