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

Move OASFactoryResolver to SPI module, bump version to 4.0-SNAPSHOT #594

Closed
wants to merge 2 commits into from

Conversation

MikeEdgar
Copy link
Member

For #576

@@ -55,7 +48,7 @@ public abstract class OASFactoryResolver {
* @throws IllegalArgumentException
* if an instance could not be created, most likely, due to an illegal or inappropriate class
*/
public abstract <T extends Constructible> T createObject(Class<T> clazz);
public abstract <T> T createObject(Class<T> clazz);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dropped extends Constructible to avoid dependency cycle with api module.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Implementations should already be checking that T is Constructible and the API used by applications in OASFactory retains the Constructible type on createObject.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As mentioned in #576 , this is not a great solution as it breaks compatibility with previous versions and also makes the SPI contract too loose.

@@ -20,7 +20,7 @@
<!-- This is just for now and will not work if the API has a separate release cycle than the rest. -->
<groupId>org.eclipse.microprofile.openapi</groupId>
<artifactId>microprofile-openapi-parent</artifactId>
<version>3.2-SNAPSHOT</version>
<version>4.0-SNAPSHOT</version>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Module version bump required to pass biz.aQute.bnd:bnd-baseline-maven-plugin verification.

@MikeEdgar MikeEdgar closed this Jan 23, 2024
@MikeEdgar MikeEdgar deleted the spi-module branch January 23, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant