Interface ExtensionRegistry
- All Known Implementing Classes:
MutableExtensionRegistry
@API(status=INTERNAL,
since="5.0")
public interface ExtensionRegistry
An
ExtensionRegistry
holds all registered extensions (i.e.
instances of Extension
) for a given
Node
.- Since:
- 5.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault <E extends org.junit.jupiter.api.extension.Extension>
List<E> getExtensions
(Class<E> extensionType) Get allExtensions
of the specified type that are present in this registry or one of its ancestors.<E extends org.junit.jupiter.api.extension.Extension>
Stream<E> Stream allExtensions
of the specified type that are present in this registry or one of its ancestors.
-
Method Details
-
stream
Stream allExtensions
of the specified type that are present in this registry or one of its ancestors.- Parameters:
extensionType
- the type ofExtension
to stream- See Also:
-
getExtensions
default <E extends org.junit.jupiter.api.extension.Extension> List<E> getExtensions(Class<E> extensionType) Get allExtensions
of the specified type that are present in this registry or one of its ancestors.- Parameters:
extensionType
- the type ofExtension
to get- See Also:
-