Skip to content

Commit 0652b20

Browse files
Add FeatureHandler.containsFeature().
1 parent 4adb1ee commit 0652b20

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/FeatureHandler.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ public void forEachGraalFeature(Consumer<InternalFeature> consumer) {
105105
}
106106
}
107107

108+
public boolean containsFeature(Class<?> c) {
109+
return registeredFeatures.contains(c);
110+
}
111+
108112
@SuppressWarnings("unchecked")
109113
public void registerFeatures(ImageClassLoader loader, DebugContext debug) {
110114
IsInConfigurationAccessImpl access = new IsInConfigurationAccessImpl(this, loader, debug);

0 commit comments

Comments
 (0)