Package play
Class InvocationContext
- java.lang.Object
-
- play.InvocationContext
-
public class InvocationContext extends java.lang.ObjectThe class/method that will be invoked by the current operation
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.ThreadLocal<InvocationContext>current
-
Constructor Summary
Constructors Constructor Description InvocationContext(java.lang.String invocationType, java.lang.annotation.Annotation[] annotations)InvocationContext(java.lang.String invocationType, java.lang.annotation.Annotation[]... annotations)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InvocationContextcurrent()<T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> clazz)java.util.List<java.lang.annotation.Annotation>getAnnotations()<T extends java.lang.annotation.Annotation>
booleanisAnnotationPresent(java.lang.Class<T> clazz)java.lang.StringtoString()
-
-
-
Field Detail
-
current
public static final java.lang.ThreadLocal<InvocationContext> current
-
-
Method Detail
-
current
public static InvocationContext current()
-
getAnnotations
public java.util.List<java.lang.annotation.Annotation> getAnnotations()
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> clazz)
-
isAnnotationPresent
public <T extends java.lang.annotation.Annotation> boolean isAnnotationPresent(java.lang.Class<T> clazz)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-