Package org.apache.ignite.internal.util
Class GridAnnotationsCache
- java.lang.Object
-
- org.apache.ignite.internal.util.GridAnnotationsCache
-
public final class GridAnnotationsCache extends Object
Caches class loaders for classes.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends Annotation>
TgetAnnotation(Class<?> cls, Class<T> annCls)static voidonUndeployed(ClassLoader ldr)
-
-
-
Method Detail
-
getAnnotation
@Nullable public static <T extends Annotation> T getAnnotation(Class<?> cls, Class<T> annCls)
- Parameters:
cls- Class.annCls- Annotation class.- Returns:
- Annotation (or
null).
-
onUndeployed
public static void onUndeployed(ClassLoader ldr)
- Parameters:
ldr- Undeployed class loader.
-
-