protected void bindTypeReferences ( BindingFactory factory , TypeReference interfaceType , TypeReference implementationType , TypeReference customImplementationType ) { final IFileSystemAccess2 fileSystem = getSrc ( ) ; final TypeReference type ; if ( ( fileSystem . isFile ( implementationType . getJavaPath ( ) ) ) || ( fileSystem . isFile ( customImplementationType . getXtendPath ( ) ) ) ) { type = customImplementationType ; } else { type = implementationType ; } factory . addfinalTypeToType ( interfaceType , type ) ; }
Binds the given references according to the standard policy .