felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r995093 - in /felix/trunk/dependencymanager/samples/src/main/java/samples: dependonconfiguration/Activator.java dependonservice/Activator.java registerservice/Activator.java trackingserviceswithcallbacks/Activator.java
Date Wed, 08 Sep 2010 15:29:02 GMT
Author: pderop
Date: Wed Sep  8 15:29:02 2010
New Revision: 995093

URL: http://svn.apache.org/viewvc?rev=995093&view=rev
Log:
use createComponent() method instead of createService()

Modified:
    felix/trunk/dependencymanager/samples/src/main/java/samples/dependonconfiguration/Activator.java
    felix/trunk/dependencymanager/samples/src/main/java/samples/dependonservice/Activator.java
    felix/trunk/dependencymanager/samples/src/main/java/samples/registerservice/Activator.java
    felix/trunk/dependencymanager/samples/src/main/java/samples/trackingserviceswithcallbacks/Activator.java

Modified: felix/trunk/dependencymanager/samples/src/main/java/samples/dependonconfiguration/Activator.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/samples/src/main/java/samples/dependonconfiguration/Activator.java?rev=995093&r1=995092&r2=995093&view=diff
==============================================================================
--- felix/trunk/dependencymanager/samples/src/main/java/samples/dependonconfiguration/Activator.java
(original)
+++ felix/trunk/dependencymanager/samples/src/main/java/samples/dependonconfiguration/Activator.java
Wed Sep  8 15:29:02 2010
@@ -6,7 +6,7 @@ import org.osgi.framework.BundleContext;
 
 public class Activator extends DependencyActivatorBase {
     public void init(BundleContext context, DependencyManager manager) throws Exception {
-        manager.add(createService()
+        manager.add(createComponent()
             .setImplementation(Task.class)
             .add(createConfigurationDependency()
                 .setPid("config.pid")

Modified: felix/trunk/dependencymanager/samples/src/main/java/samples/dependonservice/Activator.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/samples/src/main/java/samples/dependonservice/Activator.java?rev=995093&r1=995092&r2=995093&view=diff
==============================================================================
--- felix/trunk/dependencymanager/samples/src/main/java/samples/dependonservice/Activator.java
(original)
+++ felix/trunk/dependencymanager/samples/src/main/java/samples/dependonservice/Activator.java
Wed Sep  8 15:29:02 2010
@@ -7,7 +7,7 @@ import org.osgi.service.log.LogService;
 
 public class Activator extends DependencyActivatorBase {
     public void init(BundleContext context, DependencyManager manager) throws Exception {
-        manager.add(createService()
+        manager.add(createComponent()
             .setImplementation(DataGenerator.class)
             .add(createServiceDependency()
                 .setService(Store.class)

Modified: felix/trunk/dependencymanager/samples/src/main/java/samples/registerservice/Activator.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/samples/src/main/java/samples/registerservice/Activator.java?rev=995093&r1=995092&r2=995093&view=diff
==============================================================================
--- felix/trunk/dependencymanager/samples/src/main/java/samples/registerservice/Activator.java
(original)
+++ felix/trunk/dependencymanager/samples/src/main/java/samples/registerservice/Activator.java
Wed Sep  8 15:29:02 2010
@@ -6,7 +6,7 @@ import org.osgi.framework.BundleContext;
 
 public class Activator extends DependencyActivatorBase {
     public void init(BundleContext context, DependencyManager manager) throws Exception {
-        manager.add(createService()
+        manager.add(createComponent()
             .setInterface(Store.class.getName(), null)
             .setImplementation(MemoryStore.class)
         );

Modified: felix/trunk/dependencymanager/samples/src/main/java/samples/trackingserviceswithcallbacks/Activator.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/samples/src/main/java/samples/trackingserviceswithcallbacks/Activator.java?rev=995093&r1=995092&r2=995093&view=diff
==============================================================================
--- felix/trunk/dependencymanager/samples/src/main/java/samples/trackingserviceswithcallbacks/Activator.java
(original)
+++ felix/trunk/dependencymanager/samples/src/main/java/samples/trackingserviceswithcallbacks/Activator.java
Wed Sep  8 15:29:02 2010
@@ -6,7 +6,7 @@ import org.osgi.framework.BundleContext;
 
 public class Activator extends DependencyActivatorBase {
     public void init(BundleContext context, DependencyManager manager) throws Exception {
-        manager.add(createService()
+        manager.add(createComponent()
             .setImplementation(DocumentTranslator.class)
             .add(createServiceDependency()
                 .setService(Translator.class)



Mime
View raw message