Description:
|
When extending AbstractRestResponder
Currently,
subclasses
should call the sole constructor
of AbstractRestResponder
but subclasses
are required to
have
call it sole constructor which takes
a
MediaType as a parameter. But this will cause issues with CDI if for example a user would like to use a different scope for a custom responder, as CDI requires a
no-args constructor
to be picked up by the CDI runtime
for various operations (like creating a proxy)
.
This task should
remove the constructor from AbstractRestResponder and let subclasses manages this them selves.
This tasks should also
add a
comment along these lines
deployment time check to verify that a Responder implementation provides a no-args constructor
.
The comment might also
If not provided the will
be
added to
no way for
the
Responder interface so implementors are aware
user to notice that their custom responder was not picked up, they would only notice that it is not working
.
|