Package oracle.pgx.config
Class AbstractConfig
java.lang.Object
oracle.pgx.config.AbstractConfig
- Direct Known Subclasses:
AbstractAuthorizationEntityConfig,AbstractAuthorizationEntityPermissionConfig,AbstractClientConfig,AbstractContentSecurityPolicyConfig,AbstractDataMemoryLimitsConfig,AbstractEdgeTypeConfig,AbstractEngineConfig,AbstractFileGraphStoringConfig,AbstractGraphBuilderConfig,AbstractGraphPropertyConfig,AbstractPreloadGraphConfig,AbstractRuntimeConfig,AbstractStrictTransportSecurityConfig,AbstractUdfConfig,AbstractUdfFunctionConfig,AnalysisTaskConfig,AuditConfig,AuthorizationLocationConfig,BasicSchedulerConfig,EnterpriseSchedulerConfig,EnterpriseSchedulerFlagsConfig,EntityProviderConfig,ForeignKeyColumnConfig,FrontierRedactedVerticesConfig,GraphConfig,GraphErrorHandlingConfig,GraphLoadingConfig,KeyColumnConfig,PreparedQueryArgumentConfig,PreparedQueryConfig,PropertiesRedactionRuleConfig,ProviderLoadingConfig,RdfGraphPrefixConfig,RealmConfig,UdfFunctionArgumentConfig
base class for all configuration classes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectgetDefault(String schemaName, ConfigField field, Object factoryDefault) static StringLooks up a value by a key from java properties and the system environment.static <T> Optional<T>getValueFromEnvironment(String key, Class<T> type) abstract Map<? extends ConfigField,Object> static ObjectparseString(String value, Class type) voidsetSerializable(boolean serializable) Set this config to be serializable
-
Field Details
-
SYSTEM_PROPERTY_PREFIX
- See Also:
-
ENV_VARIABLE_PREFIX
- See Also:
-
ENV_SEPARATOR
- See Also:
-
-
Constructor Details
-
AbstractConfig
public AbstractConfig()
-
-
Method Details
-
setSerializable
public void setSerializable(boolean serializable) Set this config to be serializable- Parameters:
serializable- true if serializable, false otherwise
-
getValues
-
parseString
-
getDefault
-
getValueFromEnvironment
Looks up a value by a key from java properties and the system environment. Looks up the providedkeyfirst in the java system properties prefixed withSYSTEM_PROPERTY_PREFIXand returns the value if present. If it is not present, looks it up in the system environment prefixed withENV_VARIABLE_PREFIXand returns this one if present. Returnsnullif the key is neither found in the properties nor in the environment.- Parameters:
key- the key to look up- Returns:
- the found value or
nullif the key is not available - See Also:
-
getValueFromEnvironment
-