net.java.dev.moskito.core.stats.impl
Class StatValueTypeUtility

java.lang.Object
  extended by net.java.dev.moskito.core.stats.impl.StatValueTypeUtility
Direct Known Subclasses:
StatValueFactory

abstract class StatValueTypeUtility
extends Object

This utility class provides methods to gather the StatValue type from a given Object's class and to create ValueHolderFactories from an internal type representation.

Author:
dvayanu

Constructor Summary
StatValueTypeUtility()
           
 
Method Summary
protected static IValueHolderFactory createValueHolderFactory(StatValueTypes aType)
          This method creates the responsible ValueHolderFactory from the given internal type representation.
protected static StatValueTypes object2type(Object aObject)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatValueTypeUtility

StatValueTypeUtility()
Method Detail

createValueHolderFactory

protected static final IValueHolderFactory createValueHolderFactory(StatValueTypes aType)
This method creates the responsible ValueHolderFactory from the given internal type representation.

Parameters:
aType - the type that should be supported by the new facotry
Returns:
the new factory instance
Throws:
RuntimeException - if the type is unknown or not supported

object2type

protected static final StatValueTypes object2type(Object aObject)
Parameters:
aObject -
Returns:


Copyright © 2006 MoSKito Project Team. All Rights Reserved.
MoSKito, the open source java monitoring framework