zio.temporal.internal

Members list

Type members

Classlikes

abstract class ConfigurationCompanion[Configurable]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Compile-time helpers for auto-registering zio-json codecs from a workflow or activity interface's method signatures.

Compile-time helpers for auto-registering zio-json codecs from a workflow or activity interface's method signatures.

The macro walks a type I — expected to be a @workflowInterface or @activityInterface — and for every method annotated with @workflowMethod, @signalMethod, @queryMethod, or @activityMethod, summons a ZTemporalCodec[T] for each parameter type and for the return type. If any required codec cannot be summoned, compilation fails with a message pointing at the type that needs one.

The summoned codecs are emitted as runtime registrations into the supplied CodecRegistry. This is what makes CodecRegistry#addInterface[I] work end-to-end: compile-time evidence of codec existence + runtime registration in one call.

The same machinery is used by the ''auto-registration'' path (autoRegisterInterfaceImpl, autoRegisterActivityImplImpl), which is invoked from ZWorker.addWorkflow[I], ZWorker.addActivityImplementation, ZWorkflowClient.newWorkflowStub[A], etc. to remove the need for users to call .addInterface[...] by hand.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
class InvocationMacroUtils[Q <: Quotes](using val q: Q) extends MacroUtils[Q]

Attributes

Supertypes
class MacroUtils[Q]
class Object
trait Matchable
class Any
class MacroUtils[Q <: Quotes](using val q: Q)

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object ZWorkflow

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type