mirror of https://github.com/apache/jclouds.git
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:
parent
920951ebea
commit
12bd7f4fdc
1
pom.xml
1
pom.xml
|
@ -44,7 +44,6 @@
|
|||
<module>extensions/s3nio</module>
|
||||
<module>gae</module>
|
||||
<module>s3</module>
|
||||
<module>s3/perftest</module>
|
||||
</modules>
|
||||
<build>
|
||||
<plugins>
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue