Interface AutoCleaned

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
DockerContainerHolder, ExistingJenkinsController, JBossController, JenkinsController, LocalController, LocalSlaveController, MailhogProvider, MockUpdateCenter, PooledJenkinsController, SlaveController, TomcatController, WinstoneController, WinstoneDockerController

public interface AutoCleaned extends Closeable
Marks instances that want to run some shutdown action at the end of their scope.

When a test scope exits, all the existing instances that implement this interface gets its Closeable.close() method invoked.

Currently this only works with TestScope.

Kohsuke Kawaguchi
See Also:
  • Method Summary

    Methods inherited from interface