Package io.temporal.common.metadata
Class POJOActivityInterfaceMetadata
- java.lang.Object
-
- io.temporal.common.metadata.POJOActivityInterfaceMetadata
-
public final class POJOActivityInterfaceMetadata extends java.lang.Object
Metadata of an activity interface.Rules:
- An activity implementation must implement at least one non empty interface annotated with ActivityInterface
- An interface annotated with ActivityInterface can extend zero or more interfaces.
- An interface annotated with ActivityInterface defines activity methods for all methods it inherited from interfaces which are not annotated with ActivityInterface.
- Each method name can be defined only once across all interfaces annotated with ActivityInterface. So if annotated interface A has method foo() and an annotated interface B extends A it cannot also declare foo() even with a different signature.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Class<?>
getInterfaceClass()
Java interfaceClass
that backs this activity interface.POJOActivityMethodMetadata
getMethodMetadata(java.lang.reflect.Method method)
java.util.List<POJOActivityMethodMetadata>
getMethodsMetadata()
static POJOActivityInterfaceMetadata
newInstance(java.lang.Class<?> anInterface)
-
-
-
Method Detail
-
newInstance
public static POJOActivityInterfaceMetadata newInstance(java.lang.Class<?> anInterface)
-
getInterfaceClass
public java.lang.Class<?> getInterfaceClass()
Java interfaceClass
that backs this activity interface.
-
getMethodsMetadata
public java.util.List<POJOActivityMethodMetadata> getMethodsMetadata()
-
getMethodMetadata
@Nonnull public POJOActivityMethodMetadata getMethodMetadata(java.lang.reflect.Method method)
-
-