Module org.junit.jupiter.engine
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 Type Method Description default <E extends Extension>
List<E>getExtensions(Class<E> extensionType)Get allExtensionsof the specified type that are present in this registry or one of its ancestors.default <E extends Extension>
List<E>getReversedExtensions(Class<E> extensionType)Get allExtensionsof the specified type that are present in this registry or one of its ancestors, in reverse order.<E extends Extension>
Stream<E>stream(Class<E> extensionType)Stream allExtensionsof the specified type that are present in this registry or one of its ancestors.
-
Method Details
-
stream
Stream allExtensionsof the specified type that are present in this registry or one of its ancestors.- Parameters:
extensionType- the type ofExtensionto stream- See Also:
getReversedExtensions(Class),getExtensions(Class)
-
getExtensions
Get allExtensionsof the specified type that are present in this registry or one of its ancestors.- Parameters:
extensionType- the type ofExtensionto get- See Also:
getReversedExtensions(Class),stream(Class)
-
getReversedExtensions
Get allExtensionsof the specified type that are present in this registry or one of its ancestors, in reverse order.- Parameters:
extensionType- the type ofExtensionto get- See Also:
getExtensions(Class),stream(Class)
-