Details
-
Improvement
-
Resolution: Fixed
-
Major
-
2.8.0-dp2
-
None
-
Security Level: Public
-
None
Description
It would be nice if there was a setter in CouchbaseClient to set the viewmode programmatically rather than having to use the properties file.
More importantly, it would be great if you could change CouchbaseClient to read the file in as a resource using something like:
properties.load(ClassLoader.getSystemResourceAsStream("config.properties"));
That way it only needs to be on the Classpath. Currently it's read in using FileInputStream which means having to deal with actual file locations, always a real pain when writing web apps.
If you could also find your way to changing the use of FileInputStream in
CouchbaseClient to a ClassLoader based approach (as above) for the beta that
would be a lot nicer.
http://www.couchbase.org/forums/thread/spymemcached-couchbaseclient-issues#comment-1004320