Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Content-Length: 247915 | pFad | http://github.com/codehaus-plexus/plexus-classworlds/discussions/96
80Fetched URL: http://github.com/codehaus-plexus/plexus-classworlds/discussions/96
Alternative Proxies:
-
When I take a look at the ClassRealm code, I can see that there is only one place where the strategy is set.
This place uses the
StrategyFactory.getStrategy(this)
method, which is a static call. TheStrategyFactory
does not provide any mechanism to change the behavior, likeServiceLoader
or aThreadLocal
.So how can one set a strategy without using reflection to set the private field?
If noone can ever set a strategy, what is the purpose of the subclasses like
OsgiBundleStrategy
.Beta Was this translation helpful? Give feedback.
All reactions