public class AnnoyingReflections
extends java.lang.Object
implements org.reflections.util.NameHelper
Reflections used for automatic Registrable in AnnoyingPlugin
Only made this to avoid a logger being created which caused an irrelevant error to be logged on start-up
It has the added bonus of less logic which makes it about 7x faster (about 46ms faster with 2 packages, 19 total classes)
| Modifier | Constructor and Description |
|---|---|
protected |
AnnoyingReflections()
Constructs a new instance of
AnnoyingReflections |
| Modifier and Type | Method and Description |
|---|---|
static <T> @NotNull java.util.Set<java.lang.Class<? extends T>> |
getSubTypesOf(@NotNull java.util.Set<java.lang.String> packages,
@NotNull java.lang.Class<T> type)
Get all classes that are assignable to the given type
|
protected AnnoyingReflections()
AnnoyingReflections@NotNull
public static <T> @NotNull java.util.Set<java.lang.Class<? extends T>> getSubTypesOf(@NotNull
@NotNull java.util.Set<java.lang.String> packages,
@NotNull
@NotNull java.lang.Class<T> type)
T - the type to checkpackages - the packages to scantype - the type to check