-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support Alternate Loading of Generated SPIs #25
Conversation
How does that work?
Can you explain what exactly the issue was here? |
Essentially, after the last round of annotation processing, we check the
Since we've been consolidating SPI interfaces, I'm seeing collisions with the annotation processors when it comes to writing As an example, |
I don't understand yet. Are you saying that a project that is using avaje-inject AND ALSO has a custom InjectPlugin? I don't understand the scenario? |
Think bigger, if you have a custom The issue is that two APT processors that try to create the same |
Don't afraid to be explicit and obvious. It isn't obvious to me. How does the issue manifest. Which 2 Annotation processors? Which service interfaces are clashing here (I'm guessing 2 implementations of avaje-spi-processor BUT I don't want to guess ... so please be super explicit if you can). |
I'm gonna run with validation as an example then say I have two classes @Valid
record TestClass(@NotBlank("{interpolated.message}") String s) {} @ServiceProvider
public class CustomeMessageInterpolator implements MessageInterpolator {
...
} the code will fail to compile. the reason is that the validator processor writes |
What is the error that throws? |
|
it's the same issue I initially had when I did this: #19 (comment) before I got around it |
Noticed a bit of a problem when using the avaje-spi while using a generator that also writes to the same META-INF/services.
Adds functionality to load SPI information from an alternate directory so that service writing is unimpeded