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 (only about 46ms faster with 2 packages with 19 total classes)
| Constructor and Description |
|---|
AnnoyingReflections(@NotNull java.util.Set<java.lang.String> packages)
Construct a new
AnnoyingReflections for the given packages |
| Modifier and Type | Method and Description |
|---|---|
<T> @NotNull java.util.Set<java.lang.Class<? extends T>> |
getSubTypesOf(@NotNull java.lang.Class<T> type)
Get all classes that are assignable to the given type
|
public AnnoyingReflections(@NotNull
@NotNull java.util.Set<java.lang.String> packages)
AnnoyingReflections for the given packagespackages - the packages to scan@NotNull
public <T> @NotNull java.util.Set<java.lang.Class<? extends T>> getSubTypesOf(@NotNull
@NotNull java.lang.Class<T> type)
T - the type to checktype - the type to check