org.jclouds.trmk.vcloud_0_8.functions
Class OrgURIToEndpoint

java.lang.Object
  extended by org.jclouds.trmk.vcloud_0_8.functions.OrgURIToEndpoint
All Implemented Interfaces:
com.google.common.base.Function<Object,URI>
Direct Known Subclasses:
OrgURIToDataCentersListEndpoint, OrgURIToKeysListEndpoint, OrgURIToTagsListEndpoint

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

Author:
Adrian Cole

Field Summary
protected  ReferenceType defaultOrg
           
protected  com.google.common.base.Supplier<Map<String,? extends Org>> orgMap
           
 
Constructor Summary
OrgURIToEndpoint(com.google.common.base.Supplier<Map<String,? extends Org>> orgMap, ReferenceType defaultUri)
           
 
Method Summary
 URI apply(Object from)
           
protected abstract  URI getUriFromOrg(Org org)
           
 
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

orgMap

protected final com.google.common.base.Supplier<Map<String,? extends Org>> orgMap

defaultOrg

protected final ReferenceType defaultOrg
Constructor Detail

OrgURIToEndpoint

public OrgURIToEndpoint(com.google.common.base.Supplier<Map<String,? extends Org>> orgMap,
                        ReferenceType defaultUri)
Method Detail

apply

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

getUriFromOrg

protected abstract URI getUriFromOrg(Org org)


Copyright © 2009-2011 jclouds. All Rights Reserved.