I am not completely sure what you’re referencing with ‘this object’ to be honest.
That can either be the entire Configurer or the ConfigurationResourceInjector at this moment.
Regardless, the simplest approach for you would likely be to use the Configurer#registerComponent(Class, Function<Configuration, ? extends C>) method to register additional components in to the Axon Configuration. As the default ResourceInjector in a non Spring environment (which I assume you’re in giving the nature of your question) is the ConfigurationResourceInjector, any resource you’d like to inject in your Saga instances will be retrieved from the Configuration that’s created out of the Configurer.
If you are in a Spring environment, you can simply wire the
Configurer in an
@Autowired method and register the components yourself.
If you are not in a Spring-env, I assume you are creating the
Configurer yourself, so in that scenario you will already have access to it I think!
Hope this helps you out Koen!