|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.osgi.Bundles
public final class Bundles
Utility functions helpful in working with bundles.
| Method Summary | ||
|---|---|---|
static
|
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> |
stringsForResourceInBundle(String resourcePath,
org.osgi.framework.Bundle bundle)
Reads the resource from a Bundle. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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> stringsForResourceInBundle(String resourcePath,
org.osgi.framework.Bundle bundle)
Bundle.
resourcePath - The path to the resource.bundle - The bundle to read from.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||