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