org.jclouds.openstack.nova.v2_0.functions
Class PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSet

java.lang.Object
  extended by org.jclouds.openstack.nova.v2_0.functions.PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSet
All Implemented Interfaces:
com.google.common.base.Function<ClassMethodArgsAndReturnVal,com.google.common.base.Optional<Object>>, ImplicitOptionalConverter

@Singleton
public class PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSet
extends Object
implements ImplicitOptionalConverter

We use the annotation Extension to bind a class that is an extension to an extension found in the ExtensionApi.listExtensions() call.

Author:
Adrian Cole

Constructor Summary
PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSet(com.google.common.cache.LoadingCache<String,Set<Extension>> extensions)
           
 
Method Summary
 com.google.common.base.Optional<Object> apply(ClassMethodArgsAndReturnVal input)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Constructor Detail

PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSet

@Inject
public PresentWhenExtensionAnnotationNamespaceEqualsAnyNamespaceInExtensionsSet(com.google.common.cache.LoadingCache<String,Set<Extension>> extensions)
Method Detail

apply

public com.google.common.base.Optional<Object> apply(ClassMethodArgsAndReturnVal input)
Specified by:
apply in interface com.google.common.base.Function<ClassMethodArgsAndReturnVal,com.google.common.base.Optional<Object>>

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2009-2012 jclouds. All Rights Reserved.