Package | Description |
---|---|
org.forgerock.config.resolvers |
This package contains the common config property resolvers.
|
org.forgerock.secrets.propertyresolver |
Provides a
SecretStore implementation that loads secrets from a Common Configuration
PropertyResolver and then decodes it with a
SecretPropertyFormat . |
Modifier and Type | Class and Description |
---|---|
class |
ChainedPropertyResolver
Contains a chain of
PropertyResolver s that should be used to get a token replacement property. |
class |
EnvironmentVariableResolver
A property accessor that allows access to environment variables.
|
class |
FlatFileResolver
A
PropertyResolver in which each property is stored in its own file in some directory. |
class |
ProductPathResolver
A property accessor for product paths.
|
class |
SystemPropertyResolver
A SystemPropertyResolver resolves a config token using system properties.
|
Modifier and Type | Method and Description |
---|---|
static PropertyResolver |
PropertyResolvers.bootstrapPropertyResolver(String productKey,
PropertyResolver productPathResolver)
Get the standard bootstrap property resolver, which is defined as a resolver that checks in turn:
The product paths resolver
Environment variables
System properties
Any external sources defined in the <productKey>.envconfig.dirs system property, or (if
it does not exist) the <PRODUCTKEY>_ENVCONFIG_DIRS environment variable, which is treated as a
comma-separated list of source directories, where the files in a directory are resolved in a
non-deterministic order, and are checked for duplicate keys.
|
static PropertyResolver |
PropertyResolvers.defaultingPropertyResolver()
Returns an empty resolver that always return the default value.
|
static PropertyResolver |
PropertyResolvers.environmentVariablePropertyResolver()
Construct a new
EnvironmentVariableResolver . |
static PropertyResolver |
PropertyResolvers.jsonResolver(File jsonFile)
Construct a new
JsonValueResolver using a given file. |
static PropertyResolver |
PropertyResolvers.jsonResolver(JsonValue json)
Construct a new
JsonValueResolver using a given a JsonValue . |
static PropertyResolver |
PropertyResolvers.jsonResolver(Path path)
Construct a new
JsonValueResolver using a file at the given path. |
static PropertyResolver |
PropertyResolvers.jsonResolver(String filename)
Construct a new
JsonValueResolver using the given filename. |
static PropertyResolver |
PropertyResolvers.jsonResolver(String name,
JsonValue json)
Construct a new
JsonValueResolver using a given a JsonValue . |
static PropertyResolver |
PropertyResolvers.pathPropertyResolver(Map<String,Path> directories)
Constructs a path resolver to expose paths and associated URLs.
|
static PropertyResolver |
PropertyResolvers.prefixed(String prefix,
PropertyResolver delegate)
Constructs a prefixed
PropertyResolver . |
static PropertyResolver |
PropertyResolvers.productPathPropertyResolver(String productKey,
Path instanceDirectory)
Constructs a path resolver to expose a product instance directory.
|
static PropertyResolver |
PropertyResolvers.propertiesResolver(File propertiesFile)
Creates a
PropertiesResolver given a file object. |
static PropertyResolver |
PropertyResolvers.propertiesResolver(Path filename)
Creates a
PropertiesResolver given a file location. |
static PropertyResolver |
PropertyResolvers.propertiesResolver(Properties properties)
Creates a
PropertiesResolver given a Properties object. |
static PropertyResolver |
PropertyResolvers.propertiesResolver(String filename)
Creates a
PropertiesResolver given a file location. |
static PropertyResolver |
PropertyResolvers.propertiesResolver(String name,
Properties properties)
Creates a
PropertiesResolver given a Properties object. |
static PropertyResolver |
PropertyResolvers.singletonPropertyResolver(String key,
String value)
Returns a resolver that knows only to resolve the given key.
|
static PropertyResolver |
PropertyResolvers.systemPropertyResolver()
Construct a new
SystemPropertyResolver . |
Modifier and Type | Method and Description |
---|---|
static PropertyResolver |
PropertyResolvers.bootstrapPropertyResolver(String productKey,
PropertyResolver productPathResolver)
Get the standard bootstrap property resolver, which is defined as a resolver that checks in turn:
The product paths resolver
Environment variables
System properties
Any external sources defined in the <productKey>.envconfig.dirs system property, or (if
it does not exist) the <PRODUCTKEY>_ENVCONFIG_DIRS environment variable, which is treated as a
comma-separated list of source directories, where the files in a directory are resolved in a
non-deterministic order, and are checked for duplicate keys.
|
static ChainedPropertyResolver |
ChainedPropertyResolver.of(PropertyResolver... resolvers)
Constructs a
ChainedPropertyResolver given a a list of PropertyResolver s. |
static PropertyResolver |
PropertyResolvers.prefixed(String prefix,
PropertyResolver delegate)
Constructs a prefixed
PropertyResolver . |
Constructor and Description |
---|
SubstitutionService(PropertyResolver resolver)
Creates a new substitution service that will resolve variables using the given
resolver . |
Constructor and Description |
---|
ChainedPropertyResolver(List<? extends PropertyResolver> resolvers)
Creates a chained property resolver given a list of
PropertyResolver s. |
Constructor and Description |
---|
PropertyResolverSecretStore(PropertyResolver propertyResolver)
Initialises the property resolver secret store using base64-encoded properties.
|
PropertyResolverSecretStore(PropertyResolver propertyResolver,
SecretPropertyFormat propertyFormat)
Initialises the property resolver secret store.
|
Copyright © 2010-2018, ForgeRock All Rights Reserved.