-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Use a generated class to pass pre-generated proxies to static…
… init" This reverts commit 3f0686351c20135b6d0f0d57617c5b94b54c2252.
- Loading branch information
Showing
6 changed files
with
44 additions
and
101 deletions.
There are no files selected for viewing
60 changes: 0 additions & 60 deletions
60
...m/deployment/src/main/java/io/quarkus/hibernate/orm/deployment/ClassGenerationHelper.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...ployment/src/main/java/io/quarkus/hibernate/orm/deployment/ProxyDefinitionsBuildItem.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package io.quarkus.hibernate.orm.deployment; | ||
|
||
import java.util.Objects; | ||
|
||
import io.quarkus.builder.item.SimpleBuildItem; | ||
import io.quarkus.hibernate.orm.runtime.proxies.PreGeneratedProxies; | ||
|
||
/** | ||
* Contains the reference to the class definitions of the proxies | ||
* that Hibernate ORM might require at runtime. | ||
* In Quarkus such proxies are built upfront, during the build. | ||
* This needs to be a separate build item from other components so | ||
* to avoid cycles in the rather complex build graph required by | ||
* this extension. | ||
*/ | ||
public final class ProxyDefinitionsBuildItem extends SimpleBuildItem { | ||
|
||
private final PreGeneratedProxies proxies; | ||
|
||
public ProxyDefinitionsBuildItem(PreGeneratedProxies proxies) { | ||
Objects.requireNonNull(proxies); | ||
this.proxies = proxies; | ||
} | ||
|
||
public PreGeneratedProxies getProxies() { | ||
return proxies; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters