psmith 2003/08/31 19:01:05 Modified: src/java/org/apache/log4j/chainsaw LoggerNameModel.java Log: added the all important addLoggerName method which is called when a new Logger name should be added to this model. Revision Changes Path 1.2 +12 -0 jakarta-log4j/src/java/org/apache/log4j/chainsaw/LoggerNameModel.java Index: LoggerNameModel.java =================================================================== RCS file: /home/cvs/jakarta-log4j/src/java/org/apache/log4j/chainsaw/LoggerNameModel.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- LoggerNameModel.java 29 Aug 2003 05:53:36 -0000 1.1 +++ LoggerNameModel.java 1 Sep 2003 02:01:05 -0000 1.2 @@ -70,6 +70,18 @@ */ public Collection getLoggerNames(); + /** + * Attempts to add the loggerName to the model, and returns + * true if it does, i.e that the loggerName is new, otherwise + * it is ignored. + * + * If the loggerName is new for this model, all the LoggerNameListeners + * are notified using this thread. + * + * @param loggerName + */ + public boolean addLoggerName(String loggerName); + public void addLoggerNameListener(LoggerNameListener l); public void removeLoggerNameListener(LoggerNameListener l); }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]