org.jclouds.vcloud.compute.functions
Class FindLocationForResource

java.lang.Object
  extended by 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

Field Summary
protected  Logger logger
           
 
Constructor Summary
FindLocationForResource(com.google.common.base.Supplier<Set<? extends Location>> locations)
           
 
Method Summary
 Location apply(ReferenceType resource)
          searches for a location associated with this resource.
 
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
 

Field Detail

logger

protected Logger logger
Constructor Detail

FindLocationForResource

@Inject
public FindLocationForResource(com.google.common.base.Supplier<Set<? extends Location>> locations)
Method Detail

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.