JCLOUDS-1246: Allow extending SwiftBlobStoreContextModule

This commit is contained in:
Archana Chinnaiah 2017-03-01 17:27:48 +05:30 committed by Andrew Gaul
parent b8fd47ba8d
commit 8649002e03
1 changed files with 2 additions and 2 deletions

View File

@ -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;