withLifecycle abstract method
Attaches a lifecycle lifecycle
definition to this pod.
This allows declarative lifecycle handling with a LifecycleDesign
object.
Example
spec.withLifecycle(LifecycleDesign.lazy(init: ['onStart']));
Implementation
Spec<T> withLifecycle(LifecycleDesign lifecycle);