Issue 3: revised factory method to be named createInputStreamMap

git-svn-id: http://jclouds.googlecode.com/svn/trunk@178 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
adrian.f.cole 2009-05-01 21:07:55 +00:00
parent 920951ebea
commit 12bd7f4fdc
5 changed files with 4 additions and 5 deletions

View File

@ -44,7 +44,6 @@
<module>extensions/s3nio</module>
<module>gae</module>
<module>s3</module>
<module>s3/perftest</module>
</modules>
<build>
<plugins>

View File

@ -39,7 +39,7 @@ public interface S3Context {
* @param bucket
* @return
*/
S3InputStreamMap createS3InputStreamMap(S3Bucket bucket);
S3InputStreamMap createInputStreamMap(S3Bucket bucket);
/**
* Creates a <code>Map<String,S3Object></code> view of the specified bucket.

View File

@ -77,7 +77,7 @@ public class GuiceS3Context implements S3Context {
/**
* {@inheritDoc}
*/
public S3InputStreamMap createS3InputStreamMap(S3Bucket bucket) {
public S3InputStreamMap createInputStreamMap(S3Bucket bucket) {
getConnection().createBucketIfNotExists(bucket);
return s3InputStreamMapFactory.createMapView(bucket);
}

View File

@ -51,7 +51,7 @@ public class S3InputStreamMapTest extends BaseS3MapTest<InputStream> {
@SuppressWarnings("unchecked")
protected BaseS3Map<InputStream> createMap(S3Context context,
S3Bucket bucket) {
map = context.createS3InputStreamMap(bucket);
map = context.createInputStreamMap(bucket);
return (BaseS3Map<InputStream>) map;
}

View File

@ -62,7 +62,7 @@ public class JCloudsServlet extends HttpServlet {
writer.write("List:\n");
for (S3Bucket bucket : myBuckets) {
writer.write(String.format(" %1s: %2s entries%n", bucket
.getName(), context.createS3InputStreamMap(bucket)
.getName(), context.createInputStreamMap(bucket)
.size()));
}
} catch (Exception e) {