/** * Checks, whether the given handler classname can be instantiated and is in fact an object of the required * target-type. * * @param className the classname that should be checked. * @return true, if the handler is valid, false otherwise. */ private boolean isValidHandler( final String className ) { if ( className == null ) { return false; } final XmlReadHandler o = ObjectUtilities.loadAndInstantiate( className, getClass(), getTargetClass() ); return o != null; }
final TagDefinitionValue tagVal = tagData.get( key ); if ( tagVal != null ) { return ObjectUtilities.loadAndInstantiate( tagVal.getClassName(), getClass(), getTargetClass() ); final TagDefinitionValue className = tagData.get( defaultKey ); if ( className != null ) { return ObjectUtilities.loadAndInstantiate( className.getClassName(), getClass(), getTargetClass() ); ObjectUtilities.loadAndInstantiate( fallbackName.getClassName(), getClass(), getTargetClass() ); if ( fallbackValue != null ) { return fallbackValue;