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
Api
classes by placing it on the type. ex.@Endpoint(CloudDNS.class)
- add the following to your
org.jclouds.rest.config.RestClientModule
bind(new TypeLiteral<Supplier<URI>>() { }).annotatedWith(CloudDNS.class).to(new TypeLiteral<Supplier<URI>>() { });
-
-
Constructor Summary
Constructors Constructor Description ProviderModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configure()
protected 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, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Method Detail
-
configure
protected void configure()
- Overrides:
configure
in 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)
-
-