ExtensionRegistry.
| Modifier and Type | Class and Description |
|---|---|
| private static interface | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final List | |
| private final Map | |
| private static final Logger | |
| private final List | |
| private final Set |
| Access | Constructor and Description |
|---|---|
| private | |
| private | |
| private | MutableExtensionRegistry(Set<Class<? extends Extension>> registeredExtensionTypes, List<MutableExtensionRegistry.
|
| Modifier and Type | Method and Description |
|---|---|
| private String | |
| public static MutableExtensionRegistry | Returns: a newExtensionRegistry; never nullthe parent registry parentRegistry, Stream<Class<? extends Extension>> the types of extensions to be registered in
the new registry extensionTypes)Factory for creating and populating a new registry from a list of extension types and a parent registry. |
| public static MutableExtensionRegistry | Returns: a newExtensionRegistry; never nullconfiguration parameters used to retrieve the extension
auto-detection flag; never configuration)nullFactory for creating and populating a new root registry with the default extensions. |
| private MutableExtensionRegistry. | |
| public void | initializeExtensions(Class<?> testClass, Object testInstance)
Implements org. Initialize all registered extensions for the supplied |
| private boolean | isAlreadyRegistered(Class<? extends Extension> extensionType)
Determine if the supplied type is already registered in this registry or in a parent registry. |
| private static void | |
| private void | |
| private static void | registerAutoDetectedExtensions(MutableExtensionRegistry extensionRegistry, JupiterConfiguration configuration)
|
| private void | |
| public void | registerExtension(Class<? extends Extension> extensionType)
Implements org. Instantiate an extension of the given type using its default constructor and register it in the registry. |
| public void | registerExtension(Extension extension, Object source)
Implements org. Register the supplied |
| private void | |
| private void | |
| private void | |
| public void | registerSyntheticExtension(Extension extension, Object source)
Implements org. Register the supplied |
| public void | registerUninitializedExtension(Class<?> testClass, Field source, Function<Object, ? extends Extension> initializer)
Implements org. Register an uninitialized extension for the supplied |
| public <E extends Extension> Stream | stream(Class<E> extensionType)
Implements org. Stream all |
| DEFAULT_STATELESS_EXTENSIONS | back to summary |
|---|---|
| private static final List<Extension> DEFAULT_STATELESS_EXTENSIONS | |
| lateInitExtensions | back to summary |
|---|---|
| private final Map<Class<?>, MutableExtensionRegistry. | |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| registeredExtensions | back to summary |
|---|---|
| private final List<MutableExtensionRegistry. | |
| registeredExtensionTypes | back to summary |
|---|---|
| private final Set<Class<? extends Extension>> registeredExtensionTypes | |
| MutableExtensionRegistry | back to summary |
|---|---|
| private MutableExtensionRegistry() | |
| MutableExtensionRegistry | back to summary |
|---|---|
| private MutableExtensionRegistry(MutableExtensionRegistry parent) | |
| MutableExtensionRegistry | back to summary |
|---|---|
| private MutableExtensionRegistry(Set<Class<? extends Extension>> registeredExtensionTypes, List<MutableExtensionRegistry. | |
| buildSourceInfo | back to summary |
|---|---|
| private String buildSourceInfo(@Nullable Object source) | |
| createRegistryFrom | back to summary |
|---|---|
| public static MutableExtensionRegistry createRegistryFrom(MutableExtensionRegistry parentRegistry, Stream<Class<? extends Extension>> extensionTypes) Factory for creating and populating a new registry from a list of extension types and a parent registry.
| |
| createRegistryWithDefaultExtensions | back to summary |
|---|---|
| public static MutableExtensionRegistry createRegistryWithDefaultExtensions(JupiterConfiguration configuration) Factory for creating and populating a new root registry with the default extensions. If the If the
junit.jupiter.execution.timeout.threaddump.enabled
configuration parameter has been set to
| |
| getLateInitExtensions | back to summary |
|---|---|
| private MutableExtensionRegistry. | |
| initializeExtensions | back to summary |
|---|---|
| public void initializeExtensions(Class<?> testClass, Object testInstance) Implements org. Doc from org. Initialize all registered extensions for the supplied
| |
| isAlreadyRegistered | back to summary |
|---|---|
| private boolean isAlreadyRegistered(Class<? extends Extension> extensionType) Determine if the supplied type is already registered in this registry or in a parent registry. | |
| logExcludedExtensions | back to summary |
|---|---|
| private static void logExcludedExtensions(List<Class<? extends Extension>> excludedExtensions) | |
| registerAutoDetectedExtension | back to summary |
|---|---|
| private void registerAutoDetectedExtension(Extension extension) | |
| registerAutoDetectedExtensions | back to summary |
|---|---|
| private static void registerAutoDetectedExtensions(MutableExtensionRegistry extensionRegistry, JupiterConfiguration configuration) | |
| registerDefaultExtension | back to summary |
|---|---|
| private void registerDefaultExtension(Extension extension) | |
| registerExtension | back to summary |
|---|---|
| public void registerExtension(Class<? extends Extension> extensionType) Implements org. Doc from org. Instantiate an extension of the given type using its default constructor and register it in the registry. A new
| |
| registerExtension | back to summary |
|---|---|
| public void registerExtension(Extension extension, Object source) Implements org. Doc from org. Register the supplied Semantics for SourceIf an extension is registered declaratively via
| |
| registerExtension | back to summary |
|---|---|
| private void registerExtension(String category, Extension extension) | |
| registerExtension | back to summary |
|---|---|
| private void registerExtension(String category, Extension extension, @Nullable Object source) | |
| registerLocalExtension | back to summary |
|---|---|
| private void registerLocalExtension(Extension extension) | |
| registerSyntheticExtension | back to summary |
|---|---|
| public void registerSyntheticExtension(Extension extension, Object source) Implements org. Doc from org. Register the supplied
| |
| registerUninitializedExtension | back to summary |
|---|---|
| public void registerUninitializedExtension(Class<?> testClass, Field source, Function<Object, ? extends Extension> initializer) Implements org. Doc from org. Register an uninitialized extension for the supplied Uninitialized extensions are typically registered for fields annotated
with
| |
| stream | back to summary |
|---|---|
| public <E extends Extension> Stream Implements org. Doc from org. Stream all
| |
| Modifier and Type | Method and Description |
|---|---|
| public Optional | |
| public static MutableExtensionRegistry. |
| getExtension | back to summary |
|---|---|
| public Optional | |
| of | back to summary |
|---|---|
| public static MutableExtensionRegistry. | |
| Modifier and Type | Field and Description |
|---|---|
| private Optional | |
| private final Function | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv MutableExtensionRegistry. | |
| public Optional | |
| private Class | |
| pack-priv void |
| extension | back to summary |
|---|---|
private Optional<Extension> extension
| |
| initializer | back to summary |
|---|---|
| private final Function<Object, ? extends Extension> initializer | |
| testClass | back to summary |
|---|---|
| private final Class<?> testClass | |
| LateInitEntry | back to summary |
|---|---|
| pack-priv LateInitEntry(Class<?> testClass, Function<Object, ? extends Extension> initializer) | |
| copy | back to summary |
|---|---|
| pack-priv MutableExtensionRegistry. | |
| getExtension | back to summary |
|---|---|
| public Optional Implements org.
| |
| getTestClass | back to summary |
|---|---|
| private Class | |
| initialize | back to summary |
|---|---|
| pack-priv void initialize(Object testInstance) | |
| Modifier and Type | Field and Description |
|---|---|
| private final List |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv MutableExtensionRegistry. | |
| pack-priv void |
| entries | back to summary |
|---|---|
| private final List<MutableExtensionRegistry. | |
| LateInitExtensions | back to summary |
|---|---|
| private LateInitExtensions() | |
| add | back to summary |
|---|---|
| pack-priv MutableExtensionRegistry. | |
| initialize | back to summary |
|---|---|
| pack-priv void initialize(Object testInstance) | |