FELIX-4649 - Get MetaTypeInformation while bundle is starting

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1628955 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/metatype/changelog.txt b/metatype/changelog.txt
index 9910f1b..fda852b 100644
--- a/metatype/changelog.txt
+++ b/metatype/changelog.txt
@@ -1,3 +1,10 @@
+Changes from 1.0.10 to 1.0.12
+-----------------------------
+
+** Improvement
+    * [FELIX-4649] - Get MetaTypeInformation while bundle is starting
+
+
 Changes from 1.0.8 to 1.0.10
 ----------------------------
 
diff --git a/metatype/src/main/java/org/apache/felix/metatype/internal/MetaTypeServiceImpl.java b/metatype/src/main/java/org/apache/felix/metatype/internal/MetaTypeServiceImpl.java
index 9381593..e09c709 100644
--- a/metatype/src/main/java/org/apache/felix/metatype/internal/MetaTypeServiceImpl.java
+++ b/metatype/src/main/java/org/apache/felix/metatype/internal/MetaTypeServiceImpl.java
@@ -37,7 +37,6 @@
 import org.osgi.framework.SynchronousBundleListener;
 import org.osgi.service.log.LogService;
 import org.osgi.service.metatype.MetaTypeInformation;
-import org.osgi.service.metatype.MetaTypeProvider;
 import org.osgi.service.metatype.MetaTypeService;
 
 
@@ -141,7 +140,7 @@
             }
 
             MetaTypeInformationImpl impl = null;
-            if ( bundle.getState() == Bundle.ACTIVE )
+            if ( bundle.getState() == Bundle.ACTIVE || bundle.getState() == Bundle.STARTING )
             {
                 putMetaTypeInformationInternal( bundle, mti );
             }