Details
-
Wish
-
Status: Closed
-
Major
-
Resolution: Fixed
-
metatype-1.0.10
-
None
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
MediaTypeServiceimpl.java
if ( bundle.getState() == Bundle.ACTIVE ) { putMetaTypeInformationInternal( bundle, mti ); } else { impl = mti; mti = null; }
by
MediaTypeServiceimpl.java
if ( bundle.getState() == Bundle.ACTIVE || bundle.getState() == Bundle.STARTING ) { putMetaTypeInformationInternal( bundle, mti ); } else { impl = mti; mti = null; }