ops4j / org.ops4j.pax.cdi

Contexts and Dependency Injection for OSGi
Apache License 2.0
34 stars 26 forks source link

Ability to not (re)set TCCL in service proxy calls [PAXCDI-229] #272

Open ops4j-issues opened 7 years ago

ops4j-issues commented 7 years ago

Moritz Bechler created PAXCDI-229

Service proxies currently unconditionally set TCCL to the target bundle classloader ( PAXCDI-114 ). However this is undesirable in some cases, e.g. I was trying to inject a javax.servlet.Filter OSGI service, this behaviour resets the TCCL for the complete filter/servlet chain - some of which might very well require the actual webapp classloader to be set.


Votes: 0, Watches: 1