ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/server/uk/org/iscream/cms/server/rootfilter/RootFilterServant.java
(Generate patch)

Comparing projects/cms/source/server/uk/org/iscream/cms/server/rootfilter/RootFilterServant.java (file contents):
Revision 1.7 by tdb, Wed Nov 29 19:33:35 2000 UTC vs.
Revision 1.8 by tdb, Thu Nov 30 02:42:56 2000 UTC

# Line 4 | Line 4 | package uk.ac.ukc.iscream.rootfilter;
4   //---IMPORTS---
5   import uk.ac.ukc.iscream.core.*;
6   import uk.ac.ukc.iscream.filter.*;
7 + import uk.ac.ukc.iscream.util.*;
8  
9   /**
10   * A test RootFilterServant, just prints it out.
# Line 29 | Line 30 | class RootFilterServant extends FilterPOA {
30       *
31       * @param logger a Logger to use
32       */
33 <    public RootFilterServant(Logger logger, String name) {
33 <        _logRef = logger;
33 >    public RootFilterServant() {
34          _name = name;
35 <        _logRef.write(this.toString(), Logger.DEBUG, "created");
35 >        _logger.write(this.toString(), Logger.DEBUG, "created");
36      }
37  
38   //---PUBLIC METHODS---
# Line 43 | Line 43 | class RootFilterServant extends FilterPOA {
43       * @param xml the String of XML to print out
44       */
45      public void receiveXML(String xml) {
46 <        //_logRef.write(this.toString(), Logger.SYSMSG, "received XML: "+xml);
47 <        RootFilterThread t = new RootFilterThread(xml, _logRef);
46 >        RootFilterThread t = new RootFilterThread(xml);
47          t.start();
48      }
49      
# Line 79 | Line 78 | class RootFilterServant extends FilterPOA {
78      /**
79       * Reference to a Logger
80       */
81 <    private Logger _logRef;
81 >    private Logger _logger = ReferenceManager.getInstance().getLogger();
82      
83      /**
84       * Our name
85       */
86 <    private String _name;
86 >    private String _name = ReferenceManager.getInstance().getName();
87      
88   //---STATIC ATTRIBUTES---
89  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines