/* * @(#)StringMonitoredAttributeBase.java 1.3 03/12/19 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ package com.sun.corba.se.spi.monitoring; import java.util.*; /** *

* * @author Hemanth Puttaswamy *

*

* A Convenient Abstraction to present String type Monitored Attribute. One * of the examples of StringMonitoredAttribute is the State information. *

*/ public abstract class StringMonitoredAttributeBase extends MonitoredAttributeBase { /////////////////////////////////////// // operations /** *

* Constructs StringMonitoredAttribute with the MonitoredAttributeInfo * built with the class type of String. *

*

* * @param name of this attribute *

*

* @param description of this attribute *

*

* @return a StringMonitoredAttributeBase *

*/ public StringMonitoredAttributeBase(String name, String description) { super( name ); MonitoredAttributeInfoFactory f = MonitoringFactories.getMonitoredAttributeInfoFactory(); MonitoredAttributeInfo maInfo = f.createMonitoredAttributeInfo( description, String.class, false, false ); this.setMonitoredAttributeInfo( maInfo ); } // end StringMonitoredAttributeBase } // end StringMonitoredAttributeBase