public final class FixtureResourceParameterResolverFactory extends Object implements org.axonframework.common.annotation.ParameterResolverFactory
Although all access to this fixture should be done using the static accessor methods, creation of an instance is still possible to comply with the ServiceLoader specification.
Furthermore, this factory creates lazy parameter resolver, which mean that unsupported parameters are only detected when a specific handler is invoked. This ensures that only the resources that are actually used inside a test need to be configured.
| Constructor and Description |
|---|
FixtureResourceParameterResolverFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
clear()
Clears the injectable resources registered to the current thread.
|
org.axonframework.common.annotation.ParameterResolver |
createInstance(Executable executable,
Parameter[] parameters,
int parameterIndex) |
static void |
registerResource(Object injectableResource)
Registers an additional resource for injection
|
public FixtureResourceParameterResolverFactory()
public org.axonframework.common.annotation.ParameterResolver createInstance(Executable executable, Parameter[] parameters, int parameterIndex)
createInstance in interface org.axonframework.common.annotation.ParameterResolverFactorypublic static void registerResource(Object injectableResource)
injectableResource - the resource to inject into handler methodspublic static void clear()
Copyright © 2010-2016. All Rights Reserved.