Java House skrev  den 05-07-2008 16:27:
How bad is it, to NOT use static logger;

By having the logger variable static it means it is only initialized once when the class is loaded where as a non-static logger is initialized each time you create a new object from the class. If you do this a lot there might be a substantial overhead which is often unnecessary if the logger is the same for all objects. Please note that the object may be used by more than one thread so you should be aware that this might trick your RepositorySelector.

--
 Thorbjørn

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to