org.jclouds.vcloud.compute.functions
Class FindLocationForResource
java.lang.Object
org.jclouds.vcloud.compute.functions.FindLocationForResource
- All Implemented Interfaces:
- com.google.common.base.Function<ReferenceType,Location>
@Singleton
public class FindLocationForResource
- extends Object
- implements com.google.common.base.Function<ReferenceType,Location>
- Author:
- Adrian Cole
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 |
logger
protected Logger logger
FindLocationForResource
@Inject
public FindLocationForResource(com.google.common.base.Supplier<Set<? extends Location>> locations)
apply
public Location apply(ReferenceType resource)
- searches for a location associated with this resource.
- Specified by:
apply
in interface com.google.common.base.Function<ReferenceType,Location>
- Throws:
NoSuchElementException
- if not found
Copyright © 2009-2011 jclouds. All Rights Reserved.