JCLOUDS-962: Do not override provider methods

This commit is contained in:
Oliver Gondža 2015-07-16 20:41:37 +02:00 committed by Ignasi Barrera
parent d45f08e82e
commit 6cd716f1ea
2 changed files with 14 additions and 3 deletions

View File

@ -300,15 +300,23 @@ public abstract class BaseComputeServiceContextModule extends AbstractModule {
}
};
}
@Provides
@Singleton
public final Optional<ImageExtension> guiceProvideImageExtension(Injector i) {
return provideImageExtension(i);
}
protected Optional<ImageExtension> provideImageExtension(Injector i) {
return Optional.absent();
}
@Provides
@Singleton
protected Optional<SecurityGroupExtension> guiceProvideSecurityGroupExtension(Injector i)
return provideSecurityGroupExtension(i);
}
protected Optional<SecurityGroupExtension> provideSecurityGroupExtension(Injector i) {
return Optional.absent();
}

View File

@ -37,6 +37,9 @@ public abstract class LoggingModule extends AbstractModule {
@Provides
@Singleton
public abstract Logger.LoggerFactory createLoggerFactory();
public final Logger.LoggerFactory provideLoggerFactory() {
return createLoggerFactory();
}
public abstract Logger.LoggerFactory createLoggerFactory();
}