play
Class Invoker.InvocationContext
java.lang.Object
play.Invoker.InvocationContext
- Enclosing class:
- Invoker
public static class Invoker.InvocationContext
- extends java.lang.Object
The class/method that will be invoked by the current operation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
current
public static java.lang.ThreadLocal<Invoker.InvocationContext> current
Invoker.InvocationContext
public Invoker.InvocationContext(java.lang.String invocationType)
Invoker.InvocationContext
public Invoker.InvocationContext(java.lang.String invocationType,
java.util.List<java.lang.annotation.Annotation> annotations)
Invoker.InvocationContext
public Invoker.InvocationContext(java.lang.String invocationType,
java.lang.annotation.Annotation[] annotations)
Invoker.InvocationContext
public Invoker.InvocationContext(java.lang.String invocationType,
java.lang.annotation.Annotation[]... annotations)
current
public static Invoker.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)
getInvocationType
public java.lang.String getInvocationType()
- Returns the InvocationType for this invocation - Ie: A plugin can use this to
find out if it runs in the context of a background Job
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly