felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pde...@apache.org
Subject svn commit: r910047 - /felix/trunk/dependencymanager/samples/annotation/src/main/java/org/apache/felix/dm/samples/annotation/SpellChecker.java
Date Sun, 14 Feb 2010 17:21:07 GMT
Author: pderop
Date: Sun Feb 14 17:21:06 2010
New Revision: 910047

URL: http://svn.apache.org/viewvc?rev=910047&view=rev
Log:
added start/stop methods

Modified:
    felix/trunk/dependencymanager/samples/annotation/src/main/java/org/apache/felix/dm/samples/annotation/SpellChecker.java

Modified: felix/trunk/dependencymanager/samples/annotation/src/main/java/org/apache/felix/dm/samples/annotation/SpellChecker.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/samples/annotation/src/main/java/org/apache/felix/dm/samples/annotation/SpellChecker.java?rev=910047&r1=910046&r2=910047&view=diff
==============================================================================
--- felix/trunk/dependencymanager/samples/annotation/src/main/java/org/apache/felix/dm/samples/annotation/SpellChecker.java
(original)
+++ felix/trunk/dependencymanager/samples/annotation/src/main/java/org/apache/felix/dm/samples/annotation/SpellChecker.java
Sun Feb 14 17:21:06 2010
@@ -23,6 +23,8 @@
 
 import org.apache.felix.dm.annotation.api.Service;
 import org.apache.felix.dm.annotation.api.ServiceDependency;
+import org.apache.felix.dm.annotation.api.Start;
+import org.apache.felix.dm.annotation.api.Stop;
 import org.apache.felix.shell.Command;
 import org.osgi.service.log.LogService;
 
@@ -53,7 +55,23 @@
     {
         m_dictionaries.add(dictionary);
     }
-
+    
+    /**
+     * Lifecycle method callback, used to check if our service has been activated.
+     */
+    @Start
+    protected void start() {
+        m_log.log(LogService.LOG_WARNING, "Spell Checker started");
+    }
+    
+    /**
+     * Lifecycle method callback, used to check if our service has been activated.
+     */
+    @Stop
+    protected void stop() {
+        m_log.log(LogService.LOG_WARNING, "Spell Checker stopped");
+    }
+        
     /**
      * Remove a dictionary from our service.
      * @param dictionary



Mime
View raw message