Package com.brightcove.player.util
Class ReflectionUtil
java.lang.Object
com.brightcove.player.util.ReflectionUtil
Provides utility methods that can be used access and mutate objects using reflection.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
assertCallerAnnotation
(Class<? extends Annotation> annotationClass, String message) Ensures if the caller of the method calling this method is annotated with the specified annotation.static boolean
-
Method Details
-
setField
-
assertCallerAnnotation
public static void assertCallerAnnotation(Class<? extends Annotation> annotationClass, String message) Ensures if the caller of the method calling this method is annotated with the specified annotation.- Parameters:
annotationClass
- the expected annotation classmessage
- the message that will included the exception if the check fails.- Throws:
UnsupportedOperationException
- if the caller if the caller is not annotated as expected.
-