if ( BuildProperties.DEBUG )
DebugLogger.logWarning( "BUILDER", "Deprecated binding configuration, please use the bindings registry (bindings.xml) instead of \'custom\' attributes" );
String customClass = (String)instanceConfig.get( "class" );
try {
XDataBinding customBinding = (XDataBinding)Class.forName( customClass.trim() ).newInstance();
customBinding.setup( currentProject, targetComp, null, instanceConfig );
page.addBinding( customBinding );
return;
}
catch ( Exception ex ) {
System.out.println( "could not load binding class - " + customClass );
}
}
XDataBinding factoryBinding = getFactoryBinding( page, targetComp, instanceConfig );
if ( factoryBinding != null )
page.addBinding( factoryBinding );
else if ( BuildProperties.DEBUG ) {
DebugLogger.logError( "BUILDER", "Failed to create the binding for the target: " + nameStr + " and the data source:" + (String)instanceConfig.get( "source" ));
}