public final class POJOWorkflowInterfaceMetadata
extends java.lang.Object
Rules:
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getInterfaceClass()
Java interface
Class that backs this workflow interface. |
POJOWorkflowMethodMetadata |
getMethodMetadata(java.lang.reflect.Method method)
Return metadata for a method of a workflow interface.
|
java.util.List<POJOWorkflowMethodMetadata> |
getMethodsMetadata() |
java.util.Optional<POJOWorkflowMethodMetadata> |
getWorkflowMethod() |
java.util.Optional<java.lang.String> |
getWorkflowType()
Workflow type the workflow interface defines.
|
static POJOWorkflowInterfaceMetadata |
newInstance(java.lang.Class<?> anInterface)
Returns POJOWorkflowInterfaceMetadata for an interface annotated with
WorkflowInterface . |
static POJOWorkflowInterfaceMetadata |
newInstanceSkipWorkflowAnnotationCheck(java.lang.Class<?> anInterface)
Returns POJOWorkflowInterfaceMetadata for an interface that may be annotated with
WorkflowInterface . |
public static POJOWorkflowInterfaceMetadata newInstance(java.lang.Class<?> anInterface)
WorkflowInterface
.public static POJOWorkflowInterfaceMetadata newInstanceSkipWorkflowAnnotationCheck(java.lang.Class<?> anInterface)
WorkflowInterface
. This to support invoking workflow signal and query methods through a base
interface without such annotation.public java.util.Optional<POJOWorkflowMethodMetadata> getWorkflowMethod()
public java.lang.Class<?> getInterfaceClass()
Class
that backs this workflow interface.public java.util.Optional<java.lang.String> getWorkflowType()
public POJOWorkflowMethodMetadata getMethodMetadata(java.lang.reflect.Method method)
java.lang.IllegalArgumentException
- if method doesn't belong to the workflow interface.public java.util.List<POJOWorkflowMethodMetadata> getMethodsMetadata()