Big refactoring, renamed "Service" to "Component" whenever it was referring to the thing that has dependencies and registers itself as a service.
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@994961 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceImpl.java b/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceImpl.java
index 754121b..f828266 100644
--- a/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceImpl.java
+++ b/dependencymanager/compat/src/main/java/org/apache/felix/dependencymanager/impl/ServiceImpl.java
@@ -37,14 +37,14 @@
*/
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 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 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)
{