Class SystemPropertiesConfigurer
- java.lang.Object
-
- org.projectnessie.versioned.persist.tests.SystemPropertiesConfigurer
-
public final class SystemPropertiesConfigurer extends java.lang.ObjectHelper class to configure instances ofDatabaseAdapterConfigvia system properties for micro-benchmarks and other rather one-off things. Do not use this class in production code.System properties must start with
nessie.store.followed by the name of the "with-function" that takes aStringorint, with "camel-case-breaks" replaced with dots.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCONFIG_NAME_PREFIX
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T extends org.projectnessie.versioned.persist.adapter.AdjustableDatabaseAdapterConfig>
TconfigureAdapterFromProperties(T config, java.util.function.Function<java.lang.String,java.lang.String> property)static <T extends org.projectnessie.versioned.persist.adapter.AdjustableDatabaseAdapterConfig>
TconfigureAdapterFromSystemProperties(T config)static <T extends org.projectnessie.versioned.persist.adapter.DatabaseConnectionConfig>
TconfigureConnectionFromProperties(T config, java.util.function.Function<java.lang.String,java.lang.String> property)static <T extends org.projectnessie.versioned.persist.adapter.DatabaseConnectionConfig>
TconfigureConnectionFromSystemProperties(T config)static <T> TconfigureFromPropertiesGeneric(T config, java.lang.Class<? super T> configType, java.util.function.Function<java.lang.String,java.lang.String> property)
-
-
-
Field Detail
-
CONFIG_NAME_PREFIX
public static final java.lang.String CONFIG_NAME_PREFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
configureAdapterFromSystemProperties
public static <T extends org.projectnessie.versioned.persist.adapter.AdjustableDatabaseAdapterConfig> T configureAdapterFromSystemProperties(T config)
-
configureConnectionFromSystemProperties
public static <T extends org.projectnessie.versioned.persist.adapter.DatabaseConnectionConfig> T configureConnectionFromSystemProperties(T config)
-
configureAdapterFromProperties
public static <T extends org.projectnessie.versioned.persist.adapter.AdjustableDatabaseAdapterConfig> T configureAdapterFromProperties(T config, java.util.function.Function<java.lang.String,java.lang.String> property)
-
configureConnectionFromProperties
public static <T extends org.projectnessie.versioned.persist.adapter.DatabaseConnectionConfig> T configureConnectionFromProperties(T config, java.util.function.Function<java.lang.String,java.lang.String> property)
-
configureFromPropertiesGeneric
public static <T> T configureFromPropertiesGeneric(T config, java.lang.Class<? super T> configType, java.util.function.Function<java.lang.String,java.lang.String> property)
-
-