33
33
import dev .denwav .hypo .asm .hydrate .LambdaCallHydrator ;
34
34
import dev .denwav .hypo .asm .hydrate .LocalClassHydrator ;
35
35
import dev .denwav .hypo .asm .hydrate .SuperConstructorHydrator ;
36
+ import dev .denwav .hypo .core .HypoConfig ;
36
37
import dev .denwav .hypo .core .HypoContext ;
37
38
import dev .denwav .hypo .hydrate .HydrationManager ;
38
39
import dev .denwav .hypo .mappings .ChangeChain ;
@@ -65,15 +66,18 @@ public final class InspectJarPage extends CodeBookPage {
65
66
private final Path inputJar ;
66
67
private final List <Path > classpathJars ;
67
68
private final @ Nullable Path paramMappings ;
69
+ private final HypoConfig config ;
68
70
69
71
@ Inject
70
72
public InspectJarPage (
71
73
@ InputJar final Path inputJar ,
72
74
@ ClasspathJars final List <Path > classpathJars ,
73
- @ ParamMappings @ Nullable final Path paramMappings ) {
75
+ @ ParamMappings @ Nullable final Path paramMappings ,
76
+ @ Hypo final HypoConfig config ) {
74
77
this .inputJar = inputJar ;
75
78
this .classpathJars = classpathJars ;
76
79
this .paramMappings = paramMappings ;
80
+ this .config = config ;
77
81
}
78
82
79
83
@ Override
@@ -87,6 +91,7 @@ public void exec() {
87
91
.withProvider (AsmClassDataProvider .of (fromJar (this .inputJar )))
88
92
.withContextProvider (AsmClassDataProvider .of (fromJars (this .classpathJars .toArray (new Path [0 ]))))
89
93
.withContextProvider (AsmClassDataProvider .of (ofJdk ()))
94
+ .withConfig (this .config )
90
95
.build ();
91
96
} catch (final IOException e ) {
92
97
throw new UnexpectedException ("Failed to open jar files" , e );
0 commit comments