< prev index next >

src/java.corba/share/classes/com/sun/corba/se/spi/monitoring/MonitoredAttributeBase.java

Print this page




  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package com.sun.corba.se.spi.monitoring;
  26 
  27 import java.util.*;
  28 
  29 /**
  30  * <p>
  31  *
  32  * @author Hemanth Puttaswamy
  33  * </p>
  34  * <p>
  35  *  A Convenient class provided to help users extend and implement only
  36  *  getValue(), if there is no need to clear the state and the attribute is not
  37  *  writable.
  38  *
  39  * </p>
  40  */
  41 public abstract class MonitoredAttributeBase implements MonitoredAttribute {
  42     String name;
  43     MonitoredAttributeInfo attributeInfo;
  44     /**
  45      * Constructor.
  46      */
  47     public MonitoredAttributeBase( String name, MonitoredAttributeInfo info ) {
  48         this.name = name;
  49         this.attributeInfo = info;
  50     }
  51 
  52 
  53     /**
  54      * A Package Private Constructor for internal use only.
  55      */
  56     MonitoredAttributeBase( String name ) {
  57         this.name = name;
  58     }
  59 




  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 package com.sun.corba.se.spi.monitoring;
  26 
  27 import java.util.*;
  28 
  29 /**


  30  * @author Hemanth Puttaswamy
  31  *

  32  *  A Convenient class provided to help users extend and implement only
  33  *  getValue(), if there is no need to clear the state and the attribute is not
  34  *  writable.


  35  */
  36 public abstract class MonitoredAttributeBase implements MonitoredAttribute {
  37     String name;
  38     MonitoredAttributeInfo attributeInfo;
  39     /**
  40      * Constructor.
  41      */
  42     public MonitoredAttributeBase( String name, MonitoredAttributeInfo info ) {
  43         this.name = name;
  44         this.attributeInfo = info;
  45     }
  46 
  47 
  48     /**
  49      * A Package Private Constructor for internal use only.
  50      */
  51     MonitoredAttributeBase( String name ) {
  52         this.name = name;
  53     }
  54 


< prev index next >