Injection of an instance of ErrorHandler

Description

Currently we only allow to register an ErrorHandler by fully qualified classname, it would be more useful to allow injection of an instance, so that the user can easily configure it or inject other dependencies to it.

follows up on

Activity

Gunnar MorlingJanuary 26, 2015 at 12:58 PM

Emmanuel BernardJanuary 23, 2015 at 9:40 AM

Emmanuel Bernard, wouldn't being able to pass in an instance address that need?

That's what I mean by that issue. Passing an plain instance of ErrorHandler so that the user has configured it.
The alternative is to use CDI and let it build that instance (maybe via a producer).

does HSEARCH have any awareness of CDI at all?

No, we would need to do all the work we did in HV / BV.

Gunnar MorlingJanuary 22, 2015 at 5:41 PM
Edited

, wouldn't being able to pass in an instance address that need? It could be a CDI-managed bean after all. Otherwise I'm not sure what you have in mind, does HSEARCH have any awareness of CDI at all?

Emmanuel BernardJune 30, 2014 at 11:06 AM

Another alternative is to delegate the ErrorHandler instantiation from the classname to CDI. The ErrorHandler would then be able to use @Inject etc

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created June 30, 2014 at 10:36 AM
Updated October 31, 2017 at 12:33 PM
Resolved January 26, 2015 at 7:13 PM

Flag notifications