Package org.apache.pinot.spi.utils
Class PinotReflectionUtils
- java.lang.Object
-
- org.apache.pinot.spi.utils.PinotReflectionUtils
-
public class PinotReflectionUtils extends Object
-
-
Method Summary
Modifier and Type Method Description static Set<Class<?>>getClassesThroughReflection(String regexPattern, Class<? extends Annotation> annotation)static Set<Class<?>>getClassesThroughReflection(String packageName, String regexPattern, Class<? extends Annotation> annotation)static Set<Class<?>>getClassesThroughReflection(List<String> packages, String regexPattern, Class<? extends Annotation> annotation)static Set<Method>getMethodsThroughReflection(String regexPattern, Class<? extends Annotation> annotation)static Set<Method>getMethodsThroughReflection(String packageName, String regexPattern, Class<? extends Annotation> annotation)static ObjectgetReflectionLock()Deprecated.static voidrunWithLock(Runnable runnable)Executes the given runnable within the reflection lock.
-
-
-
Method Detail
-
getClassesThroughReflection
public static Set<Class<?>> getClassesThroughReflection(String regexPattern, Class<? extends Annotation> annotation)
-
getClassesThroughReflection
public static Set<Class<?>> getClassesThroughReflection(String packageName, String regexPattern, Class<? extends Annotation> annotation)
-
getClassesThroughReflection
public static Set<Class<?>> getClassesThroughReflection(List<String> packages, String regexPattern, Class<? extends Annotation> annotation)
-
getMethodsThroughReflection
public static Set<Method> getMethodsThroughReflection(String regexPattern, Class<? extends Annotation> annotation)
-
getMethodsThroughReflection
public static Set<Method> getMethodsThroughReflection(String packageName, String regexPattern, Class<? extends Annotation> annotation)
-
runWithLock
public static void runWithLock(Runnable runnable)
Executes the given runnable within the reflection lock.
-
getReflectionLock
@Deprecated public static Object getReflectionLock()
Deprecated.Due to the multi-threading issue in org.reflections.vfs.ZipDir, we need to put a lock before calling the reflection related methods. Deprecated: userunWithLock(Runnable)instead
-
-