felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r1129649 - /felix/trunk/scr/src/main/java/org/apache/felix/scr/impl/config/ScrManagedServiceServiceFactory.java
Date Tue, 31 May 2011 12:37:50 GMT
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)



Mime
View raw message