curcuru     01/03/08 14:41:18

  Modified:    test/java/src/org/apache/qetest LoggingHandler.java
  Log:
  Added get/setDefaultHandler, so you can set a real handler
  to be used underneath us
  
  Revision  Changes    Path
  1.2       +31 -1     
xml-xalan/test/java/src/org/apache/qetest/LoggingHandler.java
  
  Index: LoggingHandler.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xalan/test/java/src/org/apache/qetest/LoggingHandler.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LoggingHandler.java       2001/02/21 19:37:17     1.1
  +++ LoggingHandler.java       2001/03/08 22:41:17     1.2
  @@ -74,10 +74,40 @@
    * <p>The best description for this class can be seen in an 
    * example; see trax.LoggingErrorHandler.java for one.</p>
    * @author [EMAIL PROTECTED]
  - * @version $Id: LoggingHandler.java,v 1.1 2001/02/21 19:37:17 curcuru Exp $
  + * @version $Id: LoggingHandler.java,v 1.2 2001/03/08 22:41:17 curcuru Exp $
    */
   public class LoggingHandler
   {
  +
  +    /**
  +     * Set a default handler for us to wrapper.
  +     * Often you may want to keep the default handler for some 
  +     * operation while you're logging.  For subclasses that support 
  +     * this call, they will log every operation, and then simply 
  +     * call-through to this default handler.
  +     *
  +     * Subclasses should implement this and verify that the default 
  +     * is of an appropriate type to use.
  +     *
  +     * @param default Object of the correct type to pass-through to;
  +     * throws IllegalArgumentException if null or incorrect type
  +     */
  +    public void setDefaultHandler(Object defaultHandler)
  +    {
  +        throw new 
java.lang.IllegalArgumentException("LoggingHandler.setDefaultHandler() is 
unimplemented!");
  +    }
  +
  +
  +    /**
  +     * Accessor method for our default handler; here returns null.
  +     *
  +     * @return default (Object) our default handler; null if unset
  +     */
  +    public Object getDefaultHandler()
  +    {
  +        return null;
  +    }
  +
   
       /**
        * Get a list of counters of all items we've logged.
  
  
  

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

Reply via email to