io.quarkus.infinispan.client.runtime.graal.SubstituteConfigurationProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of quarkus-infinispan-client Show documentation
Show all versions of quarkus-infinispan-client Show documentation
Connect to the Infinispan data grid for distributed caching
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