Package org.jclouds.location.config
Class LocationModule
java.lang.Object
com.google.inject.AbstractModule
org.jclouds.location.config.LocationModule
- All Implemented Interfaces:
com.google.inject.Module
public class LocationModule
extends com.google.inject.AbstractModule
All of these are memoized as locations do not change often at runtime. Note that we take care to
propagate authorization exceptions. this is so that we do not lock out the account.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected final com.google.common.base.Supplier
<Location> implicitLocationSupplier
(AtomicReference<AuthorizationException> authException, long seconds, ImplicitLocationSupplier uncached) protected final com.google.common.base.Supplier
<String> implicitRegionIdSupplier
(AtomicReference<AuthorizationException> authException, long seconds, ImplicitRegionIdSupplier uncached) protected final com.google.common.base.Supplier
<Map<String, com.google.common.base.Supplier<Set<String>>>> isoCodesSupplier
(AtomicReference<AuthorizationException> authException, long seconds, LocationIdToIso3166CodesSupplier uncached) memoizedLocationsSupplier
(AtomicReference<AuthorizationException> authException, long seconds, LocationsSupplier uncached) protected final com.google.common.base.Supplier
<URI> provideProvider
(AtomicReference<AuthorizationException> authException, long seconds, ProviderURISupplier uncached) regionIdsSupplier
(AtomicReference<AuthorizationException> authException, long seconds, RegionIdFilter filter, RegionIdsSupplier uncached) regionIdToURISupplier
(AtomicReference<AuthorizationException> authException, long seconds, RegionIdToURISupplier uncached) protected final com.google.common.base.Supplier
<Map<String, com.google.common.base.Supplier<Set<String>>>> regionIdToZoneIdsSupplier
(AtomicReference<AuthorizationException> authException, long seconds, RegionIdToZoneIdsSupplier uncached) zoneIdsSupplier
(AtomicReference<AuthorizationException> authException, long seconds, ZoneIdFilter filter, ZoneIdsSupplier uncached) zoneIdToURISupplier
(AtomicReference<AuthorizationException> authException, long seconds, ZoneIdToURISupplier uncached) Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
Constructor Details
-
LocationModule
public LocationModule()
-
-
Method Details
-
configure
protected void configure()- Overrides:
configure
in classcom.google.inject.AbstractModule
-
isoCodesSupplier
@Provides @Singleton protected final com.google.common.base.Supplier<Map<String,com.google.common.base.Supplier<Set<String>>>> isoCodesSupplier(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, LocationIdToIso3166CodesSupplier uncached) -
provideProvider
@Provides @Singleton protected final com.google.common.base.Supplier<URI> provideProvider(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, ProviderURISupplier uncached) -
implicitLocationSupplier
@Provides @Singleton protected final com.google.common.base.Supplier<Location> implicitLocationSupplier(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, ImplicitLocationSupplier uncached) -
memoizedLocationsSupplier
@Provides @Singleton protected final com.google.common.base.Supplier<Set<? extends Location>> memoizedLocationsSupplier(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, LocationsSupplier uncached) -
regionIdsSupplier
@Provides @Singleton protected final com.google.common.base.Supplier<Set<String>> regionIdsSupplier(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, RegionIdFilter filter, RegionIdsSupplier uncached) -
zoneIdsSupplier
@Provides @Singleton protected final com.google.common.base.Supplier<Set<String>> zoneIdsSupplier(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, ZoneIdFilter filter, ZoneIdsSupplier uncached) -
regionIdToURISupplier
@Provides @Singleton protected final com.google.common.base.Supplier<Map<String,com.google.common.base.Supplier<URI>>> regionIdToURISupplier(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, RegionIdToURISupplier uncached) -
implicitRegionIdSupplier
@Provides @Singleton protected final com.google.common.base.Supplier<String> implicitRegionIdSupplier(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, ImplicitRegionIdSupplier uncached) -
regionIdToZoneIdsSupplier
@Provides @Singleton protected final com.google.common.base.Supplier<Map<String,com.google.common.base.Supplier<Set<String>>>> regionIdToZoneIdsSupplier(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, RegionIdToZoneIdsSupplier uncached) -
zoneIdToURISupplier
@Provides @Singleton protected final com.google.common.base.Supplier<Map<String,com.google.common.base.Supplier<URI>>> zoneIdToURISupplier(AtomicReference<AuthorizationException> authException, @Named("jclouds.session-interval") long seconds, ZoneIdToURISupplier uncached)
-