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

public abstract class AbstractConfig extends Object
base class for all configuration classes
  • Field Details

  • 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

      public abstract Map<? extends ConfigField,Object> getValues()
    • parseString

      public static Object parseString(String value, Class type)
    • getDefault

      public static Object getDefault(String schemaName, ConfigField field, Object factoryDefault)
    • getValueFromEnvironment

      public static String getValueFromEnvironment(String key)
      Looks up a value by a key from java properties and the system environment. Looks up the provided key first in the java system properties prefixed with SYSTEM_PROPERTY_PREFIX and returns the value if present. If it is not present, looks it up in the system environment prefixed with ENV_VARIABLE_PREFIX and returns this one if present. Returns null if the key is neither found in the properties nor in the environment.
      Parameters:
      key - the key to look up
      Returns:
      the found value or null if the key is not available
      See Also:
    • getValueFromEnvironment

      public static <T> Optional<T> getValueFromEnvironment(String key, Class<T> type)