KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > corba > se > spi > monitoring > StringMonitoredAttributeBase


1 /*
2  * @(#)StringMonitoredAttributeBase.java 1.3 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7 package com.sun.corba.se.spi.monitoring;
8
9 import java.util.*;
10
11 /**
12  * <p>
13  *
14  * @author Hemanth Puttaswamy
15  * </p>
16  * <p>
17  * A Convenient Abstraction to present String type Monitored Attribute. One
18  * of the examples of StringMonitoredAttribute is the State information.
19  * </p>
20  */

21 public abstract class StringMonitoredAttributeBase
22     extends MonitoredAttributeBase
23 {
24
25   ///////////////////////////////////////
26
// operations
27

28
29 /**
30  * <p>
31  * Constructs StringMonitoredAttribute with the MonitoredAttributeInfo
32  * built with the class type of String.
33  * </p>
34  * <p>
35  *
36  * @param name of this attribute
37  * </p>
38  * <p>
39  * @param description of this attribute
40  * </p>
41  * <p>
42  * @return a StringMonitoredAttributeBase
43  * </p>
44  */

45     public StringMonitoredAttributeBase(String JavaDoc name, String JavaDoc description) {
46         super( name );
47         MonitoredAttributeInfoFactory f =
48             MonitoringFactories.getMonitoredAttributeInfoFactory();
49         MonitoredAttributeInfo maInfo = f.createMonitoredAttributeInfo(
50             description, String JavaDoc.class, false, false );
51        this.setMonitoredAttributeInfo( maInfo );
52     } // end StringMonitoredAttributeBase
53

54
55 } // end StringMonitoredAttributeBase
56

57
58
59
Popular Tags