Skip to content

Commit 0551cd2

Browse files
committed
bucket manager add creator
1 parent 03804f5 commit 0551cd2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/main/java/com/qiniu/storage/BucketManager.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ public BucketManager(Auth auth, Client client) {
5454
this.configHelper = new ConfigHelper(new Configuration());
5555
}
5656

57+
public BucketManager(Auth auth, Configuration cfg, Client client) {
58+
this.auth = auth;
59+
this.client = client;
60+
Configuration c2 = cfg == null ? new Configuration() : cfg.clone();
61+
this.configHelper = new ConfigHelper(c2);
62+
}
63+
5764
/**
5865
* EncodedEntryURI格式,其中 bucket+":"+key 称之为 entry
5966
*

0 commit comments

Comments
 (0)