mirror of https://github.com/apache/jclouds.git
JCLOUDS-962: Do not override provider methods
This commit is contained in:
parent
d45f08e82e
commit
6cd716f1ea
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue