public static class Invoker.InvocationContext
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.ThreadLocal<Invoker.InvocationContext> |
current |
Constructor and Description |
---|
InvocationContext(java.lang.String invocationType) |
InvocationContext(java.lang.String invocationType,
java.lang.annotation.Annotation[]... annotations) |
InvocationContext(java.lang.String invocationType,
java.lang.annotation.Annotation[] annotations) |
InvocationContext(java.lang.String invocationType,
java.util.List<java.lang.annotation.Annotation> annotations) |
Modifier and Type | Method and Description |
---|---|
static Invoker.InvocationContext |
current() |
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> clazz) |
java.util.List<java.lang.annotation.Annotation> |
getAnnotations() |
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
|
<T extends java.lang.annotation.Annotation> |
isAnnotationPresent(java.lang.Class<T> clazz) |
java.lang.String |
toString() |
public static final java.lang.ThreadLocal<Invoker.InvocationContext> current
public InvocationContext(java.lang.String invocationType)
public InvocationContext(java.lang.String invocationType, java.util.List<java.lang.annotation.Annotation> annotations)
public InvocationContext(java.lang.String invocationType, java.lang.annotation.Annotation[] annotations)
public InvocationContext(java.lang.String invocationType, java.lang.annotation.Annotation[]... annotations)
public static Invoker.InvocationContext current()
public java.util.List<java.lang.annotation.Annotation> getAnnotations()
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> clazz)
public <T extends java.lang.annotation.Annotation> boolean isAnnotationPresent(java.lang.Class<T> clazz)
public java.lang.String getInvocationType()
public java.lang.String toString()
toString
in class java.lang.Object
Guillaume Bort & zenexity - Distributed under Apache 2 licence, without any warrantly