Class ServiceCatalogModule.ProviderModule
java.lang.Object
com.google.inject.AbstractModule
org.jclouds.openstack.keystone.catalog.config.ServiceCatalogModule.ProviderModule
- All Implemented Interfaces:
 com.google.inject.Module
- Enclosing class:
 ServiceCatalogModule
public static class ServiceCatalogModule.ProviderModule
extends com.google.inject.AbstractModule
For global services who have no regions, such as DNS. To use, do the following
 
- add this module to your 
ApiMetadata.getDefaultModules() - create a service-specific annotation, such as 
@CloudDNS, and make sure that has the meta-annotationQualifier - add the above annotation to any 
Apiclasses by placing it on the type. ex.@Endpoint(CloudDNS.class) - add the following to your 
invalid reference
org.jclouds.rest.config.RestClientModule 
 bind(new TypeLiteral<Supplier<URI>>() {
 }).annotatedWith(CloudDNS.class).to(new TypeLiteral<Supplier<URI>>() {
 });
 - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected final com.google.common.base.Supplier<URI> provideZoneIdToURISupplierForApiVersion(String serviceType, String apiVersion, LocationIdToURIFromServiceEndpointsForTypeAndVersion.Factory factory) 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
- 
ProviderModule
public ProviderModule() 
 - 
 - 
Method Details
- 
configure
protected void configure()- Overrides:
 configurein classcom.google.inject.AbstractModule
 - 
provideZoneIdToURISupplierForApiVersion
@Provides @Singleton protected final com.google.common.base.Supplier<URI> provideZoneIdToURISupplierForApiVersion(@Named("jclouds.keystone.service-type") String serviceType, String apiVersion, LocationIdToURIFromServiceEndpointsForTypeAndVersion.Factory factory)  
 -