Class EmulatorResourceSet

java.lang.Object
io.github.gregwhitaker.awsemulator.emulator.EmulatorResourceSet
All Implemented Interfaces:
org.gradle.api.Named

public class EmulatorResourceSet extends Object implements org.gradle.api.Named
Reusable resource and fixture definitions. Each selected runtime gets its own task instances. Configure task inputs here; the attachment selects and locks the runtime name and mode.
  • Constructor Details

    • EmulatorResourceSet

      @Inject public EmulatorResourceSet(String name)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface org.gradle.api.Named
    • include

      @SafeVarargs public final void include(org.gradle.api.provider.Provider<? extends EmulatorResourceSet>... resources)
      Includes other sets as prerequisites. They complete before this set's steps, using the same runtime.
    • provision

      public <T extends AbstractAwsResourceTask> void provision(String name, Class<T> type, org.gradle.api.Action<? super T> action)
      Defines a provisioning step. Provisioning runs in declaration order before this set's fixtures.
    • seed

      public <T extends AbstractAwsResourceTask> void seed(String name, Class<T> type, org.gradle.api.Action<? super T> action)
      Defines a fixture step. Fixtures run in declaration order after provisioning succeeds.
    • cleanup

      public <T extends AbstractAwsResourceTask> void cleanup(String name, Class<T> type, org.gradle.api.Action<? super T> action)
      Defines explicit cleanup for resource-scoped scenario resets and cleanup commands. Steps run in declaration order, before included sets are cleaned. Ordinary seeding does not run cleanup. Select only resources owned by this set; cleanup does not infer ownership from provisioning tasks.