public class ClassFinder
extends java.lang.Object
Constructor and Description |
---|
ClassFinder() |
Modifier and Type | Method and Description |
---|---|
static <T extends BrooklynObject> |
findClasses(java.util.Collection<java.net.URL> urls,
java.lang.Class<T> clazz) |
static com.google.common.base.Predicate<java.lang.Class<?>> |
notBoring() |
static java.util.List<java.net.URL> |
toJarUrls(java.lang.String url)
finds a jar at a url, or for directories, jars under a path
|
static com.google.common.base.Predicate<java.lang.Class<?>> |
withAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation) |
static com.google.common.base.Predicate<? super java.lang.Class<? extends BrooklynObject>> |
withClassNameMatching(java.lang.String typeRegex) |
public static com.google.common.base.Predicate<java.lang.Class<?>> notBoring()
public static com.google.common.base.Predicate<java.lang.Class<?>> withAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotation)
public static com.google.common.base.Predicate<? super java.lang.Class<? extends BrooklynObject>> withClassNameMatching(java.lang.String typeRegex)
@Beta public static java.util.List<java.net.URL> toJarUrls(java.lang.String url) throws java.net.MalformedURLException
java.net.MalformedURLException
public static <T extends BrooklynObject> java.util.Set<java.lang.Class<? extends T>> findClasses(java.util.Collection<java.net.URL> urls, java.lang.Class<T> clazz)