swift keystone 2.0: adjusting default modules to include KeystoneAuthenticationModule.RegionModule

This commit is contained in:
Adam Lowe 2012-07-12 11:10:16 +01:00
parent ead47d9893
commit a105e370a8
1 changed files with 10 additions and 7 deletions

View File

@ -26,6 +26,7 @@ import java.util.Properties;
import org.jclouds.apis.ApiMetadata; import org.jclouds.apis.ApiMetadata;
import org.jclouds.openstack.keystone.v2_0.config.CredentialTypes; import org.jclouds.openstack.keystone.v2_0.config.CredentialTypes;
import org.jclouds.openstack.keystone.v2_0.config.KeystoneAuthenticationModule;
import org.jclouds.openstack.keystone.v2_0.config.KeystoneProperties; import org.jclouds.openstack.keystone.v2_0.config.KeystoneProperties;
import org.jclouds.openstack.services.ServiceType; import org.jclouds.openstack.services.ServiceType;
import org.jclouds.openstack.swift.blobstore.config.SwiftBlobStoreContextModule; import org.jclouds.openstack.swift.blobstore.config.SwiftBlobStoreContextModule;
@ -36,6 +37,7 @@ import org.jclouds.rest.RestContext;
import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSet;
import com.google.common.reflect.TypeToken; import com.google.common.reflect.TypeToken;
import com.google.inject.Module; import com.google.inject.Module;
/** /**
* Implementation of {@link ApiMetadata} for OpenStack Swift authenticated with KeyStone * Implementation of {@link ApiMetadata} for OpenStack Swift authenticated with KeyStone
* *
@ -85,7 +87,8 @@ public class SwiftKeystoneApiMetadata extends SwiftApiMetadata {
.identityName("tenantName:user or user") .identityName("tenantName:user or user")
.credentialName("password") .credentialName("password")
.context(CONTEXT_TOKEN) .context(CONTEXT_TOKEN)
.defaultModules(ImmutableSet.<Class<? extends Module>>of(KeystoneStorageEndpointModule.class, SwiftKeystoneRestClientModule.class, SwiftBlobStoreContextModule.class)); .defaultModules(ImmutableSet.<Class<? extends Module>>of(KeystoneStorageEndpointModule.class, KeystoneAuthenticationModule.RegionModule.class,
SwiftKeystoneRestClientModule.class, SwiftBlobStoreContextModule.class));
} }
@Override @Override