Hello,
On profiling our application we found most objects were being created by
the DirectoryWatcher.
We reduced the polling interval to 5 seconds but it still creates the
more objects than any other component.

I noticed that debug logging creates objects even if the logging is not
displayed. Is there a way to stop this happening?
eg. In DirectoryWatcher 

182 log(Logger.LOG_DEBUG,
183     "{" + POLL + " (ms) = " + poll + ", "
184     + DIR + " = " + watchedDirectory.getAbsolutePath() + ", "
185     + LOG_LEVEL + " = " + logLevel + ", "
186     + START_NEW_BUNDLES + " = " + startBundles + ", "
187     + TMPDIR + " = " + tmpDir + ", "
188     + FILTER + " = " + filter + "}", null);

Can this be changed so the String is only created if debugging is
displayed?
How would I would I find whether debug logging is enabled?

e.g.
if (isLogEnabled(Logger.LOG_DEBUG))

BTW: Shouldn't this be standard practice, esp for DEBUG?

Regards,
  Peter.

-----Original Message-----
From: Mihai Tarce [mailto:[email protected]] 
Sent: 14 January 2010 15:08
To: [email protected]
Subject: SCR bind() method does not accep the 'Map properties' parameter

Hello,

I'm using Felix 2.0.1, together with the Felix SCR bundle, version
1.4.0. I declare a
number of component conforming to the Declarative Services
specification, which
works fine.

However, the components which have a bind() method with the following
signature:

bindMethod(TypeOfComponent component, Map properties)

are not found by the SCR, and it outputs the following error message:

bind method [bindMethod] not found


Issue #927 discusses this, but is marked as solved in version 1.2.0:

http://issues.apache.org/jira/browse/FELIX-927

Any ideas?

Mihai



      

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to