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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/filtermanager/FilterManager.java (file contents):
Revision 1.21 by tdb, Wed Mar 14 02:01:19 2001 UTC vs.
Revision 1.24 by tdb, Wed Mar 20 13:40:29 2002 UTC

# Line 1 | Line 1
1   //---PACKAGE DECLARATION---
2 < package uk.ac.ukc.iscream.filtermanager;
2 > package uk.org.iscream.cms.server.filtermanager;
3  
4   //---IMPORTS---
5 < import uk.ac.ukc.iscream.util.*;
6 < import uk.ac.ukc.iscream.core.*;
7 < import uk.ac.ukc.iscream.componentmanager.*;
5 > import uk.org.iscream.cms.server.util.*;
6 > import uk.org.iscream.cms.server.core.*;
7 > import uk.org.iscream.cms.server.componentmanager.*;
8  
9   /**
10   * The FilterManager handles initialisation
# Line 24 | Line 24 | public class FilterManager implements Component {
24       */
25      public static final String REVISION = "$Revision$";
26      
27    /**
28     * The friendly name for this component, used by
29     * all related classes.
30     */
31    public static final String NAME = "FilterManager";
32    
27   //---STATIC METHODS---
28  
29   //---CONSTRUCTORS---
30  
31 +    /**
32 +     * Constructs a FilterManager with the name given
33 +     *
34 +     * @param givenName the name
35 +     */
36 +    public FilterManager(String givenName) {
37 +        NAME = givenName;
38 +    }
39 +
40   //---PUBLIC METHODS---
41  
42      /**
# Line 78 | Line 81 | public class FilterManager implements Component {
81       * Overrides the {@link java.lang.Object#toString() Object.toString()}
82       * method to provide clean logging (every class should have this).
83       *
84 <     * This uses the uk.ac.ukc.iscream.util.NameFormat class
84 >     * This uses the uk.org.iscream.cms.server.util.NameFormat class
85       * to format the toString()
86       *
87       * @return the name of this class and its CVS revision
88       */
89      public String toString() {
90          return FormatName.getName(
91 <            _name,
91 >            NAME,
92              getClass().getName(),
93              REVISION);
94      }
# Line 119 | Line 122 | public class FilterManager implements Component {
122      private ReferenceManager _refman = ReferenceManager.getInstance();
123  
124   //---STATIC ATTRIBUTES---
125 +
126 +    /**
127 +     * The friendly name for this component, used by
128 +     * all related classes.
129 +     * This is set from the configuration.
130 +     */
131 +    public static String NAME;
132  
133   }            

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines