felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r994961 - /felix/trunk/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceImpl.java
Date Wed, 08 Sep 2010 10:06:44 GMT
Author: marrs
Date: Wed Sep  8 10:06:44 2010
New Revision: 994961

URL: http://svn.apache.org/viewvc?rev=994961&view=rev
Log:
Big refactoring, renamed "Service" to "Component" whenever it was referring to the thing that
has dependencies and registers itself as a service.

Modified:
    felix/trunk/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceImpl.java

Modified: felix/trunk/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceImpl.java?rev=994961&r1=994960&r2=994961&view=diff
==============================================================================
--- felix/trunk/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceImpl.java
(original)
+++ felix/trunk/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceImpl.java
Wed Sep  8 10:06:44 2010
@@ -37,14 +37,14 @@ import org.osgi.framework.ServiceRegistr
  */
 public class ServiceImpl implements Service
 {
-    private org.apache.felix.dm.Service m_delegate;
+    private org.apache.felix.dm.Component m_delegate;
     private Map m_stateListeners = new HashMap();
     private ArrayList m_dependencies = new ArrayList();
 
     public ServiceImpl(DependencyManager dm)
     {
         org.apache.felix.dm.DependencyManager dmDelegate = (org.apache.felix.dm.DependencyManager)
dm.getDelegate();
-        m_delegate = dmDelegate.createService();
+        m_delegate = dmDelegate.createComponent();
     }
 
     public Service add(Dependency dependency)
@@ -88,24 +88,24 @@ public class ServiceImpl implements Serv
 
     public void addStateListener(final ServiceStateListener listener)
     {
-        org.apache.felix.dm.ServiceStateListener wrappedListener = new org.apache.felix.dm.ServiceStateListener()
+        org.apache.felix.dm.ComponentStateListener wrappedListener = new org.apache.felix.dm.ComponentStateListener()
         {
-            public void started(org.apache.felix.dm.Service service)
+            public void started(org.apache.felix.dm.Component service)
             {
                 listener.started(ServiceImpl.this);
             }
 
-            public void starting(org.apache.felix.dm.Service service)
+            public void starting(org.apache.felix.dm.Component service)
             {
                 listener.starting(ServiceImpl.this);
             }
 
-            public void stopped(org.apache.felix.dm.Service service)
+            public void stopped(org.apache.felix.dm.Component service)
             {
                 listener.stopped(ServiceImpl.this);
             }
 
-            public void stopping(org.apache.felix.dm.Service service)
+            public void stopping(org.apache.felix.dm.Component service)
             {
                 listener.stopping(ServiceImpl.this);
             }
@@ -119,10 +119,10 @@ public class ServiceImpl implements Serv
 
     public void removeStateListener(ServiceStateListener listener)
     {
-        org.apache.felix.dm.ServiceStateListener wrappedListener = null;
+        org.apache.felix.dm.ComponentStateListener wrappedListener = null;
         synchronized (m_stateListeners)
         {
-            wrappedListener = (org.apache.felix.dm.ServiceStateListener) m_stateListeners.remove(listener);
+            wrappedListener = (org.apache.felix.dm.ComponentStateListener) m_stateListeners.remove(listener);
         }
         if (wrappedListener != null)
         {



Mime
View raw message