Search in sources :

Example 6 with RuntimeInitializedClassBuildItem

use of io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem in project camel-quarkus by apache.

the class NatsProcessor method initializeSecureRandomRelatedClassesAtRuntime.

@BuildStep
void initializeSecureRandomRelatedClassesAtRuntime(BuildProducer<RuntimeInitializedClassBuildItem> runtimeInitializedClasses) {
    runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem("io.nats.client.support.RandomUtils"));
    runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem("io.nats.client.NUID"));
}
Also used : RuntimeInitializedClassBuildItem(io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem) BuildStep(io.quarkus.deployment.annotations.BuildStep)

Example 7 with RuntimeInitializedClassBuildItem

use of io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem in project camel-quarkus by apache.

the class FopProcessor method registerRuntimeInitializedClasses.

@BuildStep
public void registerRuntimeInitializedClasses(CombinedIndexBuildItem combinedIndex, BuildProducer<RuntimeInitializedClassBuildItem> runtimeInitializedClass) {
    combinedIndex.getIndex().getAllKnownSubclasses(DotName.createSimple(Base14Font.class.getName())).stream().map(classInfo -> classInfo.name().toString()).map(RuntimeInitializedClassBuildItem::new).forEach(runtimeInitializedClass::produce);
    runtimeInitializedClass.produce(new RuntimeInitializedClassBuildItem(ImageImplRegistry.class.getName()));
    runtimeInitializedClass.produce(new RuntimeInitializedClassBuildItem(ColorUtil.class.getName()));
}
Also used : RuntimeInitializedClassBuildItem(io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem) BuildStep(io.quarkus.deployment.annotations.BuildStep)

Example 8 with RuntimeInitializedClassBuildItem

use of io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem in project quarkus-hazelcast-client by hazelcast.

the class HazelcastClientProcessor method initializeRandomHolderAtRuntime.

@BuildStep
void initializeRandomHolderAtRuntime(BuildProducer<RuntimeInitializedClassBuildItem> runtimeInitializedClasses) {
    try {
        Class.forName("com.hazelcast.client.impl.connection.nio.WaitStrategy");
        runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem("com.hazelcast.client.impl.connection.nio.WaitStrategy"));
    } catch (Throwable e) {
        runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem("com.hazelcast.client.impl.connection.tcp.WaitStrategy"));
    }
    runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem(TopicAddMessageListenerMessageTask.class.getName()));
    runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem(ClientDurableExecutorServiceProxy.class.getName()));
    runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem(ClientExecutorServiceProxy.class.getName()));
    runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem(RandomLB.class.getName()));
    runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem(EventQueuePlugin.class.getName()));
    runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem(OverloadedConnectionsPlugin.class.getName()));
    runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem(NioThread.class.getName()));
    runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem(StripedExecutor.class.getName()));
    runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem(ThreadLocalRandomProvider.class.getName()));
    runtimeInitializedClasses.produce(new RuntimeInitializedClassBuildItem(RandomPicker.class.getName()));
}
Also used : RuntimeInitializedClassBuildItem(io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem) BuildStep(io.quarkus.deployment.annotations.BuildStep)

Aggregations

BuildStep (io.quarkus.deployment.annotations.BuildStep)8 RuntimeInitializedClassBuildItem (io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedClassBuildItem)8 RuntimeInitializedPackageBuildItem (io.quarkus.deployment.builditem.nativeimage.RuntimeInitializedPackageBuildItem)1