Interface ExtensionRegistry
-
- All Known Implementing Classes:
MutableExtensionRegistry
@API(status=INTERNAL, since="5.0") public interface ExtensionRegistry
AnExtensionRegistry
holds all registered extensions (i.e. instances ofExtension
) for a givenNode
.- Since:
- 5.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <E extends org.junit.jupiter.api.extension.Extension>
java.util.List<E>getExtensions(java.lang.Class<E> extensionType)
Get allExtensions
of the specified type that are present in this registry or one of its ancestors.default <E extends org.junit.jupiter.api.extension.Extension>
java.util.List<E>getReversedExtensions(java.lang.Class<E> extensionType)
Get allExtensions
of the specified type that are present in this registry or one of its ancestors, in reverse order.<E extends org.junit.jupiter.api.extension.Extension>
java.util.stream.Stream<E>stream(java.lang.Class<E> extensionType)
Stream allExtensions
of the specified type that are present in this registry or one of its ancestors.
-
-
-
Method Detail
-
stream
<E extends org.junit.jupiter.api.extension.Extension> java.util.stream.Stream<E> stream(java.lang.Class<E> extensionType)
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:
getReversedExtensions(Class)
,getExtensions(Class)
-
getExtensions
default <E extends org.junit.jupiter.api.extension.Extension> java.util.List<E> getExtensions(java.lang.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:
getReversedExtensions(Class)
,stream(Class)
-
getReversedExtensions
default <E extends org.junit.jupiter.api.extension.Extension> java.util.List<E> getReversedExtensions(java.lang.Class<E> extensionType)
Get allExtensions
of the specified type that are present in this registry or one of its ancestors, in reverse order.- Parameters:
extensionType
- the type ofExtension
to get- See Also:
getExtensions(Class)
,stream(Class)
-
-