byte-buddy icon indicating copy to clipboard operation
byte-buddy copied to clipboard

InjectionStrategy.UsingUnsafe.OfFactory

Open githubcheng2978 opened this issue 1 year ago • 1 comments
trafficstars

I wrote ClassInjector.UsingUnsafe.Factory factory = ClassInjector.UsingUnsafe.Factory.resolve(instrumentation); factory.make(null, null).injectRaw(classesTypeMap); Then the code agentBuilder.with(new AgentBuilder.InjectionStrategy.UsingUnsafe.OfFactory(factory)) seems redundant

githubcheng2978 avatar May 25 '24 14:05 githubcheng2978

Not sure what you mean. The agent builder uses the factory to inject auxiliary types. Of course you can also use it directly.

raphw avatar May 29 '24 17:05 raphw