You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by James Strachan <ja...@yahoo.co.uk> on 2002/01/31 20:16:00 UTC
[logging] makeNewLogInstance() method...
The LogSource has a static factory method called makeNewLogInstance();
How about following the naming conventions of JAXP and other fairly recent
libraries of just calling this newInstance()? Its not a big deal, it just
seems a bit less of a mouthful to remember.
Also a question. From the code it appears that the getInstance() method uses
lazy construction and calls makeNewLogInstance() if one does not already
exist. If so, should makeNewLogInstance() be a private/protected method?
i.e. should users always just call getInstance(). Or to put that another
way, when should users call makeNewLogInstance() over getInstance().
James
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>