This project has retired. For details please refer to its
Attic page.
RegionToEndpointOrProviderIfNull (Apache jclouds 1.7.3 API)
- java.lang.Object
-
- org.jclouds.location.functions.RegionToEndpointOrProviderIfNull
-
- All Implemented Interfaces:
- com.google.common.base.Function<Object,URI>
@Singleton
public class RegionToEndpointOrProviderIfNull
extends Object
implements com.google.common.base.Function<Object,URI>
Return a uri corresponding to the name of the region (passed argument).
Otherwise, return the default location.
- Author:
- Adrian Cole
-
-
Method Summary
Methods
Modifier and Type |
Method and Description |
URI |
apply(Object from) |
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.google.common.base.Function
equals
-
-
Constructor Detail
-
RegionToEndpointOrProviderIfNull
@Inject
public RegionToEndpointOrProviderIfNull(String defaultProvider,
com.google.common.base.Supplier<URI> defaultUri,
com.google.common.base.Supplier<Map<String,com.google.common.base.Supplier<URI>>> regionToEndpointSupplier)
Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.