com.zmicer.utils
Class ObjectStateUtils

java.lang.Object
  extended by com.zmicer.utils.ObjectStateUtils

public class ObjectStateUtils
extends Object

This class contains the methods could be used when checking the state of the object. It just contains the common functionality we use. $Author:: zmicer $
$Rev:: 57 $
* $Date:: 2007-08-23 09:16:37 #$


Field Summary
static org.apache.log4j.Logger LOG
          Logger instance.
 
Constructor Summary
ObjectStateUtils()
           
 
Method Summary
static void strongCheck(ICheckable checkable)
          Perform the strong check of the provided object - it means the IllegalArgumentException would be thrown in the case of the ICheckable.check() return false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

public static final org.apache.log4j.Logger LOG
Logger instance.

Constructor Detail

ObjectStateUtils

public ObjectStateUtils()
Method Detail

strongCheck

public static void strongCheck(ICheckable checkable)
Perform the strong check of the provided object - it means the IllegalArgumentException would be thrown in the case of the ICheckable.check() return false. todo: [zmicer] think if we need introduce the types of Exceptions to be thrown here

Parameters:
checkable - the instance we need check. Can not be null (otherwise IllegalArgumentException would appear).


Copyright © 2007 jzmicer.team. All Rights Reserved.