mirror of https://github.com/apache/jclouds.git
JCLOUDS-1246: Allow extending SwiftBlobStoreContextModule
This commit is contained in:
parent
b8fd47ba8d
commit
8649002e03
|
@ -39,7 +39,7 @@ public class SwiftBlobStoreContextModule extends AbstractModule {
|
||||||
install(new FactoryModuleBuilder().build(Factory.class));
|
install(new FactoryModuleBuilder().build(Factory.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
interface Factory {
|
public interface Factory {
|
||||||
RegionScopedSwiftBlobStore create(String in);
|
RegionScopedSwiftBlobStore create(String in);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -48,7 +48,7 @@ public class SwiftBlobStoreContextModule extends AbstractModule {
|
||||||
return in;
|
return in;
|
||||||
}
|
}
|
||||||
|
|
||||||
static class FactoryFunction extends ForwardingObject implements Function<String, BlobStore> {
|
public static class FactoryFunction extends ForwardingObject implements Function<String, BlobStore> {
|
||||||
@Inject
|
@Inject
|
||||||
Factory delegate;
|
Factory delegate;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue