Package | Description |
---|---|
org.forgerock.config.resolvers |
This package contains the common config property resolvers.
|
org.forgerock.openig.heap |
Manages collections or "heaps" of associated objects, initialized from
declarative configuration artifacts.
|
org.forgerock.openig.http |
Integrates with the ForgeRock HTTP Framework.
|
org.forgerock.openig.util |
Miscellaneous utility classes.
|
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. |
Modifier and Type | Class and Description |
---|---|
class |
ExpressionPropertyResolver
Resolves
Bindings -based tokens using COMMONS Config PropertyResolver . |
Modifier and Type | Field and Description |
---|---|
protected PropertyResolver |
HeapImpl.propertyResolver
Resolves tokens.
|
Constructor and Description |
---|
EnvironmentHeap(Name name,
Environment environment,
PropertyResolver propertyResolver)
Builds a new EnvironmentHeap with the given
name and environment . |
HeapImpl(HeapImpl parent,
Name name,
PropertyResolver propertyResolver)
Builds a new heap that is a child of the given heap.
|
Constructor and Description |
---|
AdminHttpApplication(String adminPrefix,
JsonValue config,
Environment environment,
RunMode mode,
PropertyResolver propertyResolver,
MeterRegistry meterRegistry)
Construct a
AdminHttpApplication . |
GatewayHttpApplication(Environment environment,
JsonValue config,
EndpointRegistry registry,
RunMode mode,
MeterRegistry meterRegistry,
PropertyResolver propertyResolver)
Construct a
GatewayHttpApplication . |
Modifier and Type | Method and Description |
---|---|
static Function<JsonValue,JsonValue,SubstitutionException> |
JsonValues.tokenized(PropertyResolver propertyResolver)
Returns a function performing deep token substitution and object coercion ($ "functions").
|
Copyright 2011-2017 ForgeRock AS.