Class TestBeanReplacements
java.lang.Object
com.ultikits.ultitools.context.TestBeanReplacements
A single module's replacement plan, created only by the in-process boot's scanner.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordA discovered declaration for a test replacement, including any names of the same factory bean. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SimpleContainerThe fresh child container, never a server or parent container.private final Set<TestBeanReplacements.Definition> Definitions the test scan actually accepted; overlapping scans of one class count once.private final StringIdentifies the failing test module without consulting its assembled beans.Test factories whose singleton and aliases were already installed as stand-ins.The test bootstrap's immutable per-module requests; Paper does not supply any. -
Constructor Summary
ConstructorsConstructorDescriptionTestBeanReplacements(SimpleContainer container, String module, Map<Class<?>, Object> requests) Called only for a class with replacement requests in an in-process handover. -
Method Summary
Modifier and TypeMethodDescription(package private) voidValidates every requested type against discovered declarations before installing any stand-ins.private InvalidTestBeanReplacementReports an invalid test arrangement before the module's components can run.(package private) voidrecordComponent(Class<?> type, String name) Records only successfully discovered components, and only in a test scan.private voidrecordFactories(Class<?> configuration, Function<Method, String[]> factoryNames) Reads factory metadata only for an in-process replacement request, not for a server scan.(package private) booleanWhether an in-process scan should skip a factory whose result has already been replaced.private TestBeanReplacements.DefinitionResolves against the test module's declarations, without inheriting parent beans or priorities.
-
Field Details
-
container
The fresh child container, never a server or parent container. -
module
Identifies the failing test module without consulting its assembled beans. -
requests
-
definitions
Definitions the test scan actually accepted; overlapping scans of one class count once. -
replacedFactories
-
-
Constructor Details
-
TestBeanReplacements
TestBeanReplacements(SimpleContainer container, String module, Map<Class<?>, Object> requests) Called only for a class with replacement requests in an in-process handover.
-
-
Method Details
-
recordComponent
-
install
-
replaces
Whether an in-process scan should skip a factory whose result has already been replaced. -
recordFactories
-
select
Resolves against the test module's declarations, without inheriting parent beans or priorities. -
invalid
Reports an invalid test arrangement before the module's components can run.
-