@Singleton public class FindLocationForResource extends Object implements com.google.common.base.Function<ReferenceType,org.jclouds.domain.Location>
| Modifier and Type | Field and Description |
|---|---|
protected org.jclouds.logging.Logger |
logger |
| Constructor and Description |
|---|
FindLocationForResource(com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations) |
| Modifier and Type | Method and Description |
|---|---|
org.jclouds.domain.Location |
apply(ReferenceType resource)
searches for a location associated with this resource.
|
@Inject public FindLocationForResource(com.google.common.base.Supplier<Set<? extends org.jclouds.domain.Location>> locations)
public org.jclouds.domain.Location apply(ReferenceType resource)
apply in interface com.google.common.base.Function<ReferenceType,org.jclouds.domain.Location>NoSuchElementException - if not foundCopyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.