FELIX-387 Fix support for reference service target properties
git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@581210 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/scr/src/main/java/org/apache/felix/scr/DependencyManager.java b/scr/src/main/java/org/apache/felix/scr/DependencyManager.java
index acacfdf..44a7c16 100644
--- a/scr/src/main/java/org/apache/felix/scr/DependencyManager.java
+++ b/scr/src/main/java/org/apache/felix/scr/DependencyManager.java
@@ -153,11 +153,12 @@
private void serviceAdded( ServiceReference reference )
{
// ignore the service, if it does not match the target filter
- if ( targetFilterMatch( reference ) )
+ if ( !targetFilterMatch( reference ) )
{
m_componentManager.getActivator().log( LogService.LOG_DEBUG,
- "Dependency Manager: Ignoring added Service for " + m_dependencyMetadata.getName() + " : does not match target filter " + getTarget(),
- m_componentManager.getComponentMetadata(), null );
+ "Dependency Manager: Ignoring added Service for " + m_dependencyMetadata.getName()
+ + " : does not match target filter " + getTarget(), m_componentManager.getComponentMetadata(),
+ null );
return;
}