[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[equinox-dev] Possible bug in ServiceTracker
- From: Niclas Hedhman <niclas@xxxxxxxxxxx>
- Date: Mon, 22 May 2006 16:04:40 +0800
- Delivered-to: firstname.lastname@example.org
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id:sender; b=W68qpYO18uCUu+acLvh5KWHoBpus2CfqZYyV0v6EMgzGmaWKefryW4lQcbp4vyietc5IXtwtcdgVwJnnAWgan7Rl79jnJA7qBGg4+OZZ47+P40MZSJ/MhoClxFl6i320dzczKgPySD2AmLj/zjhXll2/5nfN4fmd1K7ycQYdIXs=
- User-agent: KMail/1.8.3
We are struggling with a ServiceTracker filter problem.
If we do;
String classname = Content.class.getName()
new ServiceTracker( m_bundleContext, classname, m_contentTracking );
tracking work as expected. However, if we change it to
String filterString =
"(" + Constants.OBJECTCLASS + "=" +Content.class.getName() + " )";
Filter filter = bundleContext.createFilter( filterString);
new ServiceTracker( m_bundleContext, filter, m_contentTracking );
We don't get any service tracking. We have tried to follow the code in the
tracker and the associated Event management in framework, and we are not
capable of following the logic behind the, hrmmm, overly complex code. ;o)
The only thing I think I concluded was that the tracker's EventListener is not
called from the framework at all.
Any idea why this behaviour is observed???