Search in sources :

Example 1 with ResourcesRegistry

use of com.oracle.svm.core.configure.ResourcesRegistry in project graal by oracle.

the class JNIRegistrationAwt method registerColorProfiles.

private static void registerColorProfiles(DuringAnalysisAccess duringAnalysisAccess) {
    ResourcesRegistry resourcesRegistry = ImageSingletons.lookup(ResourcesRegistry.class);
    resourcesRegistry.addResources(ConfigurationCondition.alwaysTrue(), "sun.java2d.cmm.profiles.*");
}
Also used : ResourcesRegistry(com.oracle.svm.core.configure.ResourcesRegistry)

Example 2 with ResourcesRegistry

use of com.oracle.svm.core.configure.ResourcesRegistry in project graal by oracle.

the class JNIRegistrationAwt method registerRTFReaderCharsets.

private static void registerRTFReaderCharsets(DuringAnalysisAccess duringAnalysisAccess) {
    ResourcesRegistry resourcesRegistry = ImageSingletons.lookup(ResourcesRegistry.class);
    resourcesRegistry.addResources(ConfigurationCondition.alwaysTrue(), "javax.swing.text.rtf.charsets.*");
}
Also used : ResourcesRegistry(com.oracle.svm.core.configure.ResourcesRegistry)

Example 3 with ResourcesRegistry

use of com.oracle.svm.core.configure.ResourcesRegistry in project graal by oracle.

the class JNIRegistrationAwt method registerHtml32bdtd.

private static void registerHtml32bdtd(DuringAnalysisAccess duringAnalysisAccess) {
    ResourcesRegistry resourcesRegistry = ImageSingletons.lookup(ResourcesRegistry.class);
    resourcesRegistry.addResources(ConfigurationCondition.alwaysTrue(), "javax.swing.text.html.parser.html32.bdtd");
}
Also used : ResourcesRegistry(com.oracle.svm.core.configure.ResourcesRegistry)

Example 4 with ResourcesRegistry

use of com.oracle.svm.core.configure.ResourcesRegistry in project graal by oracle.

the class JNIRegistrationAwt method registerFlavorMapProps.

private static void registerFlavorMapProps(DuringAnalysisAccess duringAnalysisAccess) {
    ResourcesRegistry resourcesRegistry = ImageSingletons.lookup(ResourcesRegistry.class);
    resourcesRegistry.addResources(ConfigurationCondition.alwaysTrue(), "sun.datatransfer.resources.flavormap.properties");
}
Also used : ResourcesRegistry(com.oracle.svm.core.configure.ResourcesRegistry)

Example 5 with ResourcesRegistry

use of com.oracle.svm.core.configure.ResourcesRegistry in project graal by oracle.

the class JNIRegistrationAwt method registerOceanThemeIcons.

private static void registerOceanThemeIcons(DuringAnalysisAccess duringAnalysisAccess) {
    ResourcesRegistry resourcesRegistry = ImageSingletons.lookup(ResourcesRegistry.class);
    resourcesRegistry.addResources(ConfigurationCondition.alwaysTrue(), "javax.swing.plaf.metal.icons.*");
    resourcesRegistry.addResources(ConfigurationCondition.alwaysTrue(), "javax.swing.plaf.basic.icons.*");
}
Also used : ResourcesRegistry(com.oracle.svm.core.configure.ResourcesRegistry)

Aggregations

ResourcesRegistry (com.oracle.svm.core.configure.ResourcesRegistry)7 ResourceConfiguration (com.oracle.svm.configure.config.ResourceConfiguration)1 JsonWriter (com.oracle.svm.configure.json.JsonWriter)1 ResourceConfigurationParser (com.oracle.svm.core.configure.ResourceConfigurationParser)1 IOException (java.io.IOException)1 PipedReader (java.io.PipedReader)1 PipedWriter (java.io.PipedWriter)1 Collection (java.util.Collection)1 LinkedList (java.util.LinkedList)1 ConfigurationCondition (org.graalvm.nativeimage.impl.ConfigurationCondition)1 Test (org.junit.Test)1