private void setValueIfNotDefinedAsLegacy( final TagDefinitionKey key, final Class<? extends T> hasCData ) { final TagDefinitionValue existingValue = tagData.get( key ); if ( existingValue != null && existingValue.isLegacyOverride() ) { final Log legacyWarningLog = LogFactory.getLog( getClass() ); legacyWarningLog.debug ( "Module-Configuration ignored as a legacy properties-based configuration exists for " + key ); return; } tagData.put( key, new TagDefinitionValue( hasCData.getName(), false ) ); }
final String globalValue = conf.getConfigProperty( globalDefaultKey ); if ( isValidHandler( globalValue ) ) { this.tagData.put( new TagDefinitionKey( null, null ), new TagDefinitionValue( globalValue, true ) ); if ( warnedLegacyConfig == false ) { legacyWarningLog.warn( "Configured configuration-properties based override for global read-hander. " + warnedLegacyConfig = true; this.tagData.put( new TagDefinitionKey( nsUri, null ), new TagDefinitionValue( tagData, true ) ); this.tagData.put( new TagDefinitionKey( null, tagDef ), new TagDefinitionValue( tagData, true ) ); } else { final String nsPrefix = tagDef.substring( 0, delim ); this.tagData.put( new TagDefinitionKey( nsUri, tagName ), new TagDefinitionValue( tagData, true ) );
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;