Automatic configuration

Luca Vercelli
 

Dear group,

I would like to tell hk2 something like this:
"Every class must bind to itself, if not differently specified"
Or
"Every class in a particular package must bind to itself"
Is this possible, out of the box? I was able to obtain the second result using the Reflections framework, however it is slow. I think Glassfish uses the first approach.
Regards

Luca

Join hk2@javaee.groups.io to automatically receive all group messages.