Irakli Betchvaia created FELIX-4649:
---------------------------------------
Summary: 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
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;
}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)