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