KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > profile > AbstractProfilePoint


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.excalibur.profile;
9
10 /**
11  * The ProfilPoint interface is to mark objects that can be sampled by a
12  * Profiler. The interface only has one sampling method to simplify the items
13  * that can be sampled.
14  *
15  * @author <a HREF="mailto:bloritsch@apache.org">Berin Loritsch</a>
16  */

17 public abstract class AbstractProfilePoint implements ProfilePoint
18 {
19     private final String JavaDoc m_name;
20
21     /**
22      * Initializes the ProfilePoint with a name.
23      */

24     public AbstractProfilePoint( String JavaDoc name )
25     {
26         m_name = name;
27     }
28
29     /**
30      * Get the ProfilePoint's name. The Profiler uses this so that the
31      * heading for the sample data makes sense.
32      */

33     public final String JavaDoc getName()
34     {
35         return m_name;
36     }
37 }
38
Popular Tags