48
48
import org .graalvm .nativeimage .ImageSingletons ;
49
49
import org .graalvm .nativeimage .Platform ;
50
50
import org .graalvm .nativeimage .Platforms ;
51
- import org .graalvm .nativeimage .impl .ConfigurationCondition ;
52
51
import org .graalvm .nativeimage .impl .RuntimeReflectionSupport ;
53
52
54
53
//Checkstyle: allow reflection
@@ -69,7 +68,7 @@ public final class RuntimeReflection {
69
68
* @since 19.0
70
69
*/
71
70
public static void register (Class <?>... classes ) {
72
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).register (ConfigurationCondition . alwaysTrue (), classes );
71
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).register (InclusionCondition . alwaysInclude (), classes );
73
72
}
74
73
75
74
/**
@@ -80,7 +79,7 @@ public static void register(Class<?>... classes) {
80
79
* @since 23.0
81
80
*/
82
81
public static void registerClassLookup (String className ) {
83
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerClassLookup (ConfigurationCondition . alwaysTrue (), className );
82
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerClassLookup (InclusionCondition . alwaysInclude (), className );
84
83
}
85
84
86
85
/**
@@ -91,7 +90,7 @@ public static void registerClassLookup(String className) {
91
90
* @since 19.0
92
91
*/
93
92
public static void register (Executable ... methods ) {
94
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).register (ConfigurationCondition . alwaysTrue (), false , methods );
93
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).register (InclusionCondition . alwaysInclude (), false , methods );
95
94
}
96
95
97
96
/**
@@ -103,7 +102,7 @@ public static void register(Executable... methods) {
103
102
* @since 21.3
104
103
*/
105
104
public static void registerAsQueried (Executable ... methods ) {
106
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).register (ConfigurationCondition . alwaysTrue (), true , methods );
105
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).register (InclusionCondition . alwaysInclude (), true , methods );
107
106
}
108
107
109
108
/**
@@ -116,7 +115,7 @@ public static void registerAsQueried(Executable... methods) {
116
115
* @since 23.0
117
116
*/
118
117
public static void registerMethodLookup (Class <?> declaringClass , String methodName , Class <?>... parameterTypes ) {
119
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerMethodLookup (ConfigurationCondition . alwaysTrue (), declaringClass , methodName , parameterTypes );
118
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerMethodLookup (InclusionCondition . alwaysInclude (), declaringClass , methodName , parameterTypes );
120
119
}
121
120
122
121
/**
@@ -130,7 +129,7 @@ public static void registerMethodLookup(Class<?> declaringClass, String methodNa
130
129
* @since 23.0
131
130
*/
132
131
public static void registerConstructorLookup (Class <?> declaringClass , Class <?>... parameterTypes ) {
133
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerConstructorLookup (ConfigurationCondition . alwaysTrue (), declaringClass , parameterTypes );
132
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerConstructorLookup (InclusionCondition . alwaysInclude (), declaringClass , parameterTypes );
134
133
}
135
134
136
135
/**
@@ -141,7 +140,7 @@ public static void registerConstructorLookup(Class<?> declaringClass, Class<?>..
141
140
* @since 19.0
142
141
*/
143
142
public static void register (Field ... fields ) {
144
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).register (ConfigurationCondition . alwaysTrue (), false , fields );
143
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).register (InclusionCondition . alwaysInclude (), false , fields );
145
144
}
146
145
147
146
/**
@@ -153,7 +152,7 @@ public static void register(Field... fields) {
153
152
* @since 19.0
154
153
*/
155
154
public static void registerFieldLookup (Class <?> declaringClass , String fieldName ) {
156
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerFieldLookup (ConfigurationCondition . alwaysTrue (), declaringClass , fieldName );
155
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerFieldLookup (InclusionCondition . alwaysInclude (), declaringClass , fieldName );
157
156
}
158
157
159
158
/**
@@ -162,7 +161,7 @@ public static void registerFieldLookup(Class<?> declaringClass, String fieldName
162
161
* @since 23.0
163
162
*/
164
163
public static void registerAllClasses (Class <?> declaringClass ) {
165
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllClassesQuery (ConfigurationCondition . alwaysTrue (), declaringClass );
164
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllClassesQuery (InclusionCondition . alwaysInclude (), declaringClass );
166
165
}
167
166
168
167
/**
@@ -171,7 +170,7 @@ public static void registerAllClasses(Class<?> declaringClass) {
171
170
* @since 23.0
172
171
*/
173
172
public static void registerAllDeclaredClasses (Class <?> declaringClass ) {
174
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllDeclaredClassesQuery (ConfigurationCondition . alwaysTrue (), declaringClass );
173
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllDeclaredClassesQuery (InclusionCondition . alwaysInclude (), declaringClass );
175
174
}
176
175
177
176
/**
@@ -181,7 +180,7 @@ public static void registerAllDeclaredClasses(Class<?> declaringClass) {
181
180
* @since 23.0
182
181
*/
183
182
public static void registerAllMethods (Class <?> declaringClass ) {
184
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllMethodsQuery (ConfigurationCondition . alwaysTrue (), true , declaringClass );
183
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllMethodsQuery (InclusionCondition . alwaysInclude (), true , declaringClass );
185
184
}
186
185
187
186
/**
@@ -191,7 +190,7 @@ public static void registerAllMethods(Class<?> declaringClass) {
191
190
* @since 23.0
192
191
*/
193
192
public static void registerAllDeclaredMethods (Class <?> declaringClass ) {
194
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllDeclaredMethodsQuery (ConfigurationCondition . alwaysTrue (), true , declaringClass );
193
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllDeclaredMethodsQuery (InclusionCondition . alwaysInclude (), true , declaringClass );
195
194
}
196
195
197
196
/**
@@ -201,7 +200,7 @@ public static void registerAllDeclaredMethods(Class<?> declaringClass) {
201
200
* @since 23.0
202
201
*/
203
202
public static void registerAllConstructors (Class <?> declaringClass ) {
204
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllConstructorsQuery (ConfigurationCondition . alwaysTrue (), true , declaringClass );
203
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllConstructorsQuery (InclusionCondition . alwaysInclude (), true , declaringClass );
205
204
}
206
205
207
206
/**
@@ -211,7 +210,7 @@ public static void registerAllConstructors(Class<?> declaringClass) {
211
210
* @since 23.0
212
211
*/
213
212
public static void registerAllDeclaredConstructors (Class <?> declaringClass ) {
214
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllDeclaredConstructorsQuery (ConfigurationCondition . alwaysTrue (), true , declaringClass );
213
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllDeclaredConstructorsQuery (InclusionCondition . alwaysInclude (), true , declaringClass );
215
214
}
216
215
217
216
/**
@@ -221,7 +220,7 @@ public static void registerAllDeclaredConstructors(Class<?> declaringClass) {
221
220
* @since 23.0
222
221
*/
223
222
public static void registerAllFields (Class <?> declaringClass ) {
224
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllFields (ConfigurationCondition . alwaysTrue (), declaringClass );
223
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllFields (InclusionCondition . alwaysInclude (), declaringClass );
225
224
}
226
225
227
226
/**
@@ -231,7 +230,7 @@ public static void registerAllFields(Class<?> declaringClass) {
231
230
* @since 23.0
232
231
*/
233
232
public static void registerAllDeclaredFields (Class <?> declaringClass ) {
234
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllDeclaredFields (ConfigurationCondition . alwaysTrue (), declaringClass );
233
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllDeclaredFields (InclusionCondition . alwaysInclude (), declaringClass );
235
234
}
236
235
237
236
/**
@@ -240,7 +239,7 @@ public static void registerAllDeclaredFields(Class<?> declaringClass) {
240
239
* @since 23.0
241
240
*/
242
241
public static void registerAllNestMembers (Class <?> declaringClass ) {
243
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllNestMembersQuery (ConfigurationCondition . alwaysTrue (), declaringClass );
242
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllNestMembersQuery (InclusionCondition . alwaysInclude (), declaringClass );
244
243
}
245
244
246
245
/**
@@ -249,7 +248,7 @@ public static void registerAllNestMembers(Class<?> declaringClass) {
249
248
* @since 23.0
250
249
*/
251
250
public static void registerAllPermittedSubclasses (Class <?> declaringClass ) {
252
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllPermittedSubclassesQuery (ConfigurationCondition . alwaysTrue (), declaringClass );
251
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllPermittedSubclassesQuery (InclusionCondition . alwaysInclude (), declaringClass );
253
252
}
254
253
255
254
/**
@@ -258,7 +257,7 @@ public static void registerAllPermittedSubclasses(Class<?> declaringClass) {
258
257
* @since 23.0
259
258
*/
260
259
public static void registerAllRecordComponents (Class <?> declaringClass ) {
261
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllRecordComponentsQuery (ConfigurationCondition . alwaysTrue (), declaringClass );
260
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllRecordComponentsQuery (InclusionCondition . alwaysInclude (), declaringClass );
262
261
}
263
262
264
263
/**
@@ -267,7 +266,7 @@ public static void registerAllRecordComponents(Class<?> declaringClass) {
267
266
* @since 23.0
268
267
*/
269
268
public static void registerAllSigners (Class <?> declaringClass ) {
270
- ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllSignersQuery (ConfigurationCondition . alwaysTrue (), declaringClass );
269
+ ImageSingletons .lookup (RuntimeReflectionSupport .class ).registerAllSignersQuery (InclusionCondition . alwaysInclude (), declaringClass );
271
270
}
272
271
273
272
/**
0 commit comments