org.springframework.extensions.config.evaluator
Class ObjectTypeEvaluator

java.lang.Object
  extended by org.springframework.extensions.config.evaluator.ObjectTypeEvaluator
All Implemented Interfaces:
Evaluator

public class ObjectTypeEvaluator
extends Object
implements Evaluator

Evaluator that tests whether an object is equal to the given class name

Author:
gavinc

Constructor Summary
ObjectTypeEvaluator()
           
 
Method Summary
 boolean applies(Object obj, String condition)
          Tests whether the given object is equal to the class name given in the condition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectTypeEvaluator

public ObjectTypeEvaluator()
Method Detail

applies

public boolean applies(Object obj,
                       String condition)
Tests whether the given object is equal to the class name given in the condition

Specified by:
applies in interface Evaluator
Parameters:
obj - The object to use as the basis for the test
condition - The condition to test
Returns:
true if this evaluator applies to the given object, false otherwise
See Also:
Evaluator.applies(java.lang.Object, java.lang.String)


Copyright © 2009 SpringSource, Inc. All Rights Reserved.