ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/TemplateClass.java
Revision: 1.10
Committed: Thu Jan 18 23:14:39 2001 UTC (23 years, 10 months ago) by tdb
Branch: MAIN
Changes since 1.9: +3 -2 lines
Log Message:
Changes to reflect move of Component, ComponentStartException, and the
ReferenceManager from util to componentmanager.

File Contents

# User Rev Content
1 ajm 1.1 //---PACKAGE DECLARATION---
2    
3     //---IMPORTS---
4 ajm 1.9 import uk.ac.ukc.iscream.util.*;
5 tdb 1.10 import uk.ac.ukc.iscream.componentmanager.*;
6 ajm 1.1
7     /**
8     * <ONE LINE DESCRIPTION>
9     * <DETAILED DESCRIPTION>
10     *
11 ajm 1.9 * @author $Author: ajm4 $
12 tdb 1.10 * @version $Id: TemplateClass.java,v 1.9 2000/12/12 18:30:01 ajm4 Exp $
13 ajm 1.1 */
14     class TemplateClass {
15 ajm 1.3
16 ajm 1.1 //---FINAL ATTRIBUTES---
17 ajm 1.3
18     /**
19     * The current CVS revision of this class
20     */
21 tdb 1.10 public static final String REVISION = "$Revision: 1.9 $";
22 ajm 1.3
23 ajm 1.1 //---STATIC METHODS---
24    
25     //---CONSTRUCTORS---
26    
27     //---PUBLIC METHODS---
28    
29     /**
30 tdb 1.4 * Overrides the {@link java.lang.Object#toString() Object.toString()}
31 ajm 1.1 * method to provide clean logging (every class should have this).
32 ajm 1.3 *
33 ajm 1.9 * This uses the uk.ac.ukc.iscream.util.FormatName class
34 ajm 1.8 * to format the toString()
35     *
36 ajm 1.3 * @return the name of this class and its CVS revision
37 ajm 1.1 */
38     public String toString() {
39 ajm 1.9 return FormatName.getName(
40 ajm 1.8 _name,
41 ajm 1.9 getClass().getName(),
42 ajm 1.6 REVISION);
43 ajm 1.1 }
44    
45     //---PRIVATE METHODS---
46    
47     //---ACCESSOR/MUTATOR METHODS---
48    
49     //---ATTRIBUTES---
50 ajm 1.8
51     /**
52     * This is the friendly identifier of the
53     * component this class is running in.
54     * eg, a Filter may be called "filter1",
55     * If this class does not have an owning
56     * component, a name from the configuration
57     * can be placed here. This name could also
58     * be changed to null for utility classes.
59     */
60 ajm 1.9 private String _name = <!THIS SHOULD CALL A STATIC NAME IN THE COMPONENT CLASS FOR THIS OBJECT!>;
61 ajm 1.8
62     /**
63     * This holds a reference to the
64     * system logger that is being used.
65     */
66 ajm 1.9 private Logger _logger = ReferenceManager.getInstance().getLogger();
67 ajm 1.1
68     //---STATIC ATTRIBUTES---
69    
70     }