All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.infinispan.client.runtime.graal.SubstituteConfigurationProperties Maven / Gradle / Ivy

There is a newer version: 3.17.5
Show newest version
package io.quarkus.infinispan.client.runtime.graal;

import org.infinispan.client.hotrod.impl.ConfigurationProperties;
import org.infinispan.client.hotrod.marshall.BytesOnlyMarshaller;
import org.infinispan.commons.util.TypedProperties;

import com.oracle.svm.core.annotate.Alias;
import com.oracle.svm.core.annotate.Substitute;
import com.oracle.svm.core.annotate.TargetClass;

/**
 * @author William Burns
 */
@TargetClass(ConfigurationProperties.class)
public final class SubstituteConfigurationProperties {
    @Alias
    public static String MARSHALLER = null;
    @Alias
    private TypedProperties props = null;

    @Substitute
    public String getMarshaller() {
        return props.getProperty(MARSHALLER, BytesOnlyMarshaller.class.getName());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy