public final class Bundles extends Object
bundles
.Modifier and Type | Method and Description |
---|---|
static <T> com.google.common.collect.ImmutableSet<T> |
instantiateAvailableClasses(org.osgi.framework.Bundle bundle,
Iterable<String> classNames,
Class<T> type)
instantiates the supplied classnames using the bundle classloader, and
casts to the supplied type.
|
static com.google.common.collect.ImmutableSet<String> |
stringsForResorceInBundle(String resourcePath,
org.osgi.framework.Bundle bundle)
Reads the resource from a
Bundle . |
public static <T> com.google.common.collect.ImmutableSet<T> instantiateAvailableClasses(org.osgi.framework.Bundle bundle, Iterable<String> classNames, Class<T> type)
public static com.google.common.collect.ImmutableSet<String> stringsForResorceInBundle(String resourcePath, org.osgi.framework.Bundle bundle)
Bundle
.resourcePath
- The path to the resource.bundle
- The bundle to read from.Copyright © 2009-2013 jclouds. All Rights Reserved.