Env Namespacing Does Not Work
Closed this issue · 0 comments
jbee commented
The Env
currently uses a Package
reference as name-space.
The issue is that the injectingInto
Injection
frame created from the Package
targets Object
which is in package java.lang
so effectively any package passed to the se.jbee.inject.Dependency#injectingInto(java.lang.Package)
uses the name-space java.lang
and not the package of the passed Package
. This cannot be fixed easily as the Injection
frame has to reference a Class
type to support injectingInto
and within
. The better option seems to actually use a Class
as name-space reference in the Env
API as well.
See also ServiceLoaderAnnotations
that the new concept works with the Extends
way of declaring a name-space.