Craig McClanahan wrote:
It's possible to keep a Log interface and having one less class to
import by adding a static class in the Log interface. It would look like
this:
Log log = Log.Factory.getLog("foo");
I presume this would be implemented by making "Factory" a static variable?
That doesn't offer much protection against malicious applications trying to
replace it and potentially messing up other users.
There is no variable, this would be implemented with a static inner
class in the Log interface, something like this:
public interface Log {
...
public static class Factory {
public static Log getLog(String name) {
...
}
}
}
Emmanuel Bourg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]