You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by cz...@apache.org on 2014/07/30 13:46:58 UTC

svn commit: r1614621 - /felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleContextImpl.java

Author: cziegeler
Date: Wed Jul 30 11:46:58 2014
New Revision: 1614621

URL: http://svn.apache.org/r1614621
Log:
FELIX-4590 : [Core R6] Update to R6 API

Modified:
    felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleContextImpl.java

Modified: felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleContextImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleContextImpl.java?rev=1614621&r1=1614620&r2=1614621&view=diff
==============================================================================
--- felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleContextImpl.java (original)
+++ felix/trunk/framework/src/main/java/org/apache/felix/framework/BundleContextImpl.java Wed Jul 30 11:46:58 2014
@@ -516,18 +516,21 @@ class BundleContextImpl implements Felix
         throw new IllegalStateException("Invalid BundleContext.");
     }
 
-    /* (non-Javadoc)
+    /**
      * @see org.osgi.framework.BundleContext#registerService(java.lang.Class, org.osgi.framework.ServiceFactory, java.util.Dictionary)
      */
     public <S> ServiceRegistration<S> registerService(Class<S> clazz,
-            ServiceFactory<S> factory, Dictionary<String, ?> properties) {
-        throw new UnsupportedOperationException(); // TODO
+            ServiceFactory<S> factory, Dictionary<String, ?> properties)
+    {
+        return (ServiceRegistration<S>)
+                registerService(new String[] { clazz.getName() }, factory, properties);
     }
 
-    /* (non-Javadoc)
+    /**
      * @see org.osgi.framework.BundleContext#getServiceObjects(org.osgi.framework.ServiceReference)
      */
-    public <S> ServiceObjects<S> getServiceObjects(ServiceReference<S> reference) {
+    public <S> ServiceObjects<S> getServiceObjects(ServiceReference<S> reference)
+    {
         throw new UnsupportedOperationException(); // TODO
     }
 }
\ No newline at end of file