Closed GoogleCodeExporter closed 9 years ago
Hi Tanablog.
While I do understand the usage case, I'd rather keep that decision to client
code. BulkLoader is pretty agnostic if it's running locally or not, and it
would be better to keep it that way.
My suggestion is to create a BulkLoader subclass and overwrite the add method,
something like this
public class LocalAwareBulkLoader extends BulkLoader{
overwrite public function add(url:*, props) : LoadingItem{
if (url.indexOf("file://") > -1 && props && props["preventCache"]) del props["preventCache"]
return super.add(url, props)
}
}
This is just an illustration (haven't tested the code or anything), but it's a
good way to wrap that funcionality outside of bulkloader.
Cheers
Arthur Debert
Original comment by debert
on 7 Sep 2009 at 5:08
Hi Arthur.
I get it. I create BulkLoader subclass.
thanks.
Original comment by tanab...@gmail.com
on 8 Sep 2009 at 2:21
Original issue reported on code.google.com by
tanab...@gmail.com
on 1 Sep 2009 at 6:20