org.jclouds.trmk.vcloud_0_8.functions
Class OrgNameVDCNameResourceNameToEndpoint

java.lang.Object
  extended by org.jclouds.trmk.vcloud_0_8.functions.OrgNameVDCNameResourceNameToEndpoint
All Implemented Interfaces:
com.google.common.base.Function<Object,URI>
Direct Known Subclasses:
OrgNameVDCNameNetworkNameToEndpoint, OrgNameVDCNameResourceEntityNameToEndpoint

public abstract class OrgNameVDCNameResourceNameToEndpoint
extends Object
implements com.google.common.base.Function<Object,URI>

Author:
Adrian Cole

Field Summary
protected  ReferenceType defaultOrg
           
protected  ReferenceType defaultVDC
           
protected  com.google.common.base.Supplier<Map<String,Map<String,? extends VDC>>> orgVDCMap
           
 
Constructor Summary
OrgNameVDCNameResourceNameToEndpoint(com.google.common.base.Supplier<Map<String,Map<String,? extends VDC>>> orgVDCMap, ReferenceType defaultOrg, ReferenceType defaultVDC)
           
 
Method Summary
 URI apply(Object from)
           
protected abstract  URI getEndpointOfResourceInVDC(Object org, Object vDC, Object resource, VDC vDCObject)
           
 
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

orgVDCMap

protected final com.google.common.base.Supplier<Map<String,Map<String,? extends VDC>>> orgVDCMap

defaultOrg

protected final ReferenceType defaultOrg

defaultVDC

protected final ReferenceType defaultVDC
Constructor Detail

OrgNameVDCNameResourceNameToEndpoint

@Inject
public OrgNameVDCNameResourceNameToEndpoint(com.google.common.base.Supplier<Map<String,Map<String,? extends VDC>>> orgVDCMap,
                                                   ReferenceType defaultOrg,
                                                   ReferenceType defaultVDC)
Method Detail

apply

public URI apply(Object from)
Specified by:
apply in interface com.google.common.base.Function<Object,URI>

getEndpointOfResourceInVDC

protected abstract URI getEndpointOfResourceInVDC(Object org,
                                                  Object vDC,
                                                  Object resource,
                                                  VDC vDCObject)


Copyright © 2009-2012 jclouds. All Rights Reserved.