public class ProviderPredicates extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ProviderPredicates.ContextAssignableFrom |
static class |
ProviderPredicates.TransformableTo |
Constructor and Description |
---|
ProviderPredicates() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Predicate<ProviderMetadata> |
all()
Returns all providers available to jclouds regardless of type.
|
static com.google.common.base.Predicate<ProviderMetadata> |
apiMetadataAssignableFrom(com.google.common.reflect.TypeToken<? extends ApiMetadata> apiClass)
Returns all providers with an apimetadata assignable from the given api.
|
static com.google.common.base.Predicate<ProviderMetadata> |
boundedByIso3166Code(String iso3166Code)
Returns the providers that are bound to the same location as the given ISO
3166 code.
|
static com.google.common.base.Predicate<ProviderMetadata> |
contextAssignableFrom(com.google.common.reflect.TypeToken<? extends Context> type)
Returns all providers with an context assignable from the given type.
|
static com.google.common.base.Predicate<ProviderMetadata> |
id(String id)
Returns all providers with the given id.
|
static com.google.common.base.Predicate<ProviderMetadata> |
intersectingIso3166Code(ProviderMetadata refProviderMetadata)
Return all providers that have at least one ISO 3166 code in common with
the given provider metadata.
|
static com.google.common.base.Predicate<ProviderMetadata> |
viewableAs(com.google.common.reflect.TypeToken<? extends View> type)
Returns all providers with an context transformable to the given type.
|
public static com.google.common.base.Predicate<ProviderMetadata> all()
public static com.google.common.base.Predicate<ProviderMetadata> id(String id)
id
- the id of the provider to returnpublic static com.google.common.base.Predicate<ProviderMetadata> boundedByIso3166Code(String iso3166Code)
isoCode
- the ISO 3166 code to filter providers bypublic static com.google.common.base.Predicate<ProviderMetadata> intersectingIso3166Code(ProviderMetadata refProviderMetadata)
refProviderMetadata
- the provider metadata to use to filter providers bypublic static com.google.common.base.Predicate<ProviderMetadata> apiMetadataAssignableFrom(com.google.common.reflect.TypeToken<? extends ApiMetadata> apiClass)
apiClass
- the api of the provider to returnpublic static com.google.common.base.Predicate<ProviderMetadata> contextAssignableFrom(com.google.common.reflect.TypeToken<? extends Context> type)
type
- the context of the provider to returnpublic static com.google.common.base.Predicate<ProviderMetadata> viewableAs(com.google.common.reflect.TypeToken<? extends View> type)
type
- the context you wish to achieve ex. BlobStoreContext
Copyright © 2009-2013 jclouds. All Rights Reserved.