ConfigDataLocation

A user specified location that can be resolved to one or more config data resources. A ConfigDataLocation is a simple wrapper around a String value. The exact format of the value will depend on the underlying technology, but is usually a URL like syntax consisting of a prefix and path. For example, crypt:somehost/somepath.

Locations can be mandatory or optional. Optional locations are prefixed with optional:.

Author

Phillip Webb

Since

2.4.0

Properties

Link copied to clipboard
val OPTIONAL_PREFIX: String = "optional:"
Prefix used to indicate that a ConfigDataResource is optional.
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open fun equals(obj: Any): Boolean
Link copied to clipboard
open fun getNonPrefixedValue(prefix: String): String
Return getValue with the specified prefix removed.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun hasPrefix(prefix: String): Boolean
Return if getValue has the specified prefix.
Link copied to clipboard
open fun isOptional(): Boolean
Return if the location is optional and should ignore ConfigDataNotFoundException.
Link copied to clipboard
open fun of(location: String): ConfigDataLocation
Factory method to create a new ConfigDataLocation from a string.
Link copied to clipboard
Return an array of ConfigDataLocation elements built by splitting this ConfigDataLocation around a delimiter of ";".
open fun split(delimiter: String): Array<ConfigDataLocation>
Return an array of ConfigDataLocation elements built by splitting this ConfigDataLocation around the specified delimiter.
Link copied to clipboard
open fun toString(): String