Package org.junit.jupiter.api.extension
Interface ExtensionContext.Store.CloseableResource
-
- Enclosing interface:
- ExtensionContext.Store
@API(status=STABLE, since="5.1") public static interface ExtensionContext.Store.CloseableResource
Classes implementing this interface indicate that they want toclose()
some underlying resource or resources when the enclosingStore
is closed.Note that the
CloseableResource
API is only honored for objects stored within an extension contextStore
.- Since:
- 5.1
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
Close underlying resources.
-