--- projects/cms/source/TemplateClass.java 2000/12/07 19:49:27 1.6 +++ projects/cms/source/TemplateClass.java 2001/01/18 23:14:39 1.10 @@ -1,13 +1,15 @@ //---PACKAGE DECLARATION--- //---IMPORTS--- +import uk.ac.ukc.iscream.util.*; +import uk.ac.ukc.iscream.componentmanager.*; /** * * * - * @author $Author: ajm $ - * @version $Id: TemplateClass.java,v 1.6 2000/12/07 19:49:27 ajm Exp $ + * @author $Author: tdb $ + * @version $Id: TemplateClass.java,v 1.10 2001/01/18 23:14:39 tdb Exp $ */ class TemplateClass { @@ -16,7 +18,7 @@ class TemplateClass { /** * The current CVS revision of this class */ - public static final String REVISION = "$Revision: 1.6 $"; + public static final String REVISION = "$Revision: 1.10 $"; //---STATIC METHODS--- @@ -28,12 +30,15 @@ class TemplateClass { * Overrides the {@link java.lang.Object#toString() Object.toString()} * method to provide clean logging (every class should have this). * + * This uses the uk.ac.ukc.iscream.util.FormatName class + * to format the toString() + * * @return the name of this class and its CVS revision */ public String toString() { - return uk.ac.iscream.util.IscreamNamer.formatName( - uk.ac.iscream.util.ReferenceManager.getInstance().getName(), - this.getClass().getName(), + return FormatName.getName( + _name, + getClass().getName(), REVISION); } @@ -42,6 +47,23 @@ class TemplateClass { //---ACCESSOR/MUTATOR METHODS--- //---ATTRIBUTES--- + + /** + * This is the friendly identifier of the + * component this class is running in. + * eg, a Filter may be called "filter1", + * If this class does not have an owning + * component, a name from the configuration + * can be placed here. This name could also + * be changed to null for utility classes. + */ + private String _name = ; + + /** + * This holds a reference to the + * system logger that is being used. + */ + private Logger _logger = ReferenceManager.getInstance().getLogger(); //---STATIC ATTRIBUTES---