Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InjectionStrategy.UsingUnsafe.OfFactory #1651

Open
githubcheng2978 opened this issue May 25, 2024 · 1 comment
Open

InjectionStrategy.UsingUnsafe.OfFactory #1651

githubcheng2978 opened this issue May 25, 2024 · 1 comment
Assignees
Labels
Milestone

Comments

@githubcheng2978
Copy link

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

@raphw
Copy link
Owner

raphw commented May 29, 2024

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

@raphw raphw self-assigned this May 29, 2024
@raphw raphw added the question label May 29, 2024
@raphw raphw modified the milestones: 1.15.1, 1.14.16 May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants