|
From: <ek...@ba...> - 2003-03-31 21:57:06
|
Bruce, last week you updated com.babeldoc.core.LogService to modify the
getInstance method to the following:
/**
* Get instance - get the singleton or create it.
* @return
*/
public static LogService getInstance() {
return getInstance(/*getCallStack()[2].getClassName()*/);
}
As you can see, the above code just calls itself because the argument
has been commented out. I presume you wanted it to call the following
method in the class ...
/**
* Get the static instance of the log service
*
* @param logName
* @return
*/
public static LogService getInstance(String logName) {
LogService instance = (LogService) logInstances.get(logName);
if (instance == null) {
instance = new LogService(logName);
logInstances.put(logName, instance);
}
return instance;
}
I think we need to put a value in the argument in the first method above
... question is, what is the meaning of the "logName" argument in the
2nd attribute? What should go there?
Erik
The information in this e-mail, and any attachment therein, is
confidential and for use by the addressee only. If you are not the
intended recipient, please return the e-mail to the sender and delete it
from your computer. Although The Bank of New York attempts to sweep
e-mail and attachments for viruses, it does not guarantee that either
are virus-free and accepts no liability for any damage sustained as a
result of viruses.
|