You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by fm...@apache.org on 2011/05/31 14:37:50 UTC

svn commit: r1129649 - /felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/config/ScrManagedServiceServiceFactory.java

Author: fmeschbe
Date: Tue May 31 12:37:50 2011
New Revision: 1129649

URL: http://svn.apache.org/viewvc?rev=1129649&view=rev
Log:
Improve message in case MetaTypeProvider API is not available

Modified:
    felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/config/ScrManagedServiceServiceFactory.java

Modified: felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/config/ScrManagedServiceServiceFactory.java
URL: http://svn.apache.org/viewvc/felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/config/ScrManagedServiceServiceFactory.java?rev=1129649&r1=1129648&r2=1129649&view=diff
==============================================================================
--- felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/config/ScrManagedServiceServiceFactory.java (original)
+++ felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/config/ScrManagedServiceServiceFactory.java Tue May 31 12:37:50 2011
@@ -49,14 +49,19 @@ public class ScrManagedServiceServiceFac
     {
         try
         {
-            return ScrManagedServiceMetaTypeProvider.create(this.scrConfiguration);
+            return ScrManagedServiceMetaTypeProvider.create( this.scrConfiguration );
         }
-        catch (Throwable t)
+        catch ( Throwable t )
         {
             // assume MetaType Service API not available
-            Activator.log(LogService.LOG_ERROR, null, "Cannot create MetaType providing ManagedService", t);
+            Activator
+                .log(
+                    LogService.LOG_ERROR,
+                    null,
+                    "Cannot create MetaType providing ManagedService; not providing Metatype information but just accepting configuration",
+                    t );
         }
-        return new ScrManagedService(this.scrConfiguration);
+        return new ScrManagedService( this.scrConfiguration );
     }
 
     public void ungetService(Bundle bundle, ServiceRegistration registration, Object service)