microBean Configuration API


License

License

Categories

Categories

Configuration Application Layer Libs config
GroupId

GroupId

org.microbean
ArtifactId

ArtifactId

microbean-configuration-api
Last Version

Last Version

0.4.4
Release Date

Release Date

Type

Type

jar
Description

Description

microBean Configuration API
microBean Configuration API
Project URL

Project URL

https://microbean.github.io/microbean-configuration-api
Project Organization

Project Organization

microBean
Source Code Management

Source Code Management

https://github.com/microbean/microbean-configuration-api/

Download microbean-configuration-api

How to add to project

<!-- https://jarcasting.com/artifacts/org.microbean/microbean-configuration-api/ -->
<dependency>
    <groupId>org.microbean</groupId>
    <artifactId>microbean-configuration-api</artifactId>
    <version>0.4.4</version>
</dependency>
// https://jarcasting.com/artifacts/org.microbean/microbean-configuration-api/
implementation 'org.microbean:microbean-configuration-api:0.4.4'
// https://jarcasting.com/artifacts/org.microbean/microbean-configuration-api/
implementation ("org.microbean:microbean-configuration-api:0.4.4")
'org.microbean:microbean-configuration-api:jar:0.4.4'
<dependency org="org.microbean" name="microbean-configuration-api" rev="0.4.4">
  <artifact name="microbean-configuration-api" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.microbean', module='microbean-configuration-api', version='0.4.4')
)
libraryDependencies += "org.microbean" % "microbean-configuration-api" % "0.4.4"
[org.microbean/microbean-configuration-api "0.4.4"]

Dependencies

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

microBean Configuration API

Build Status Maven Central

The microBean Configuration API project provides API classes and interfaces for helping Java SE programs acquire configuration information.

Unlike other configuration frameworks and APIs, the microBean Configuration API is oriented around the concept of configuration coordinates within configuration space.

Configuration Space

Configuration space is defined as the unbounded universe of configuration properties and their values, for all applications, regardless of which system or systems might define or house them. Dimensions within this space might include locale, region, data center identifier, tenant identifier—these are only examples. Of note is that these are dimensions, not nodes within a hierarchy. Many configuration systems represent them as a hierarchy which makes resolution of configuration ambiguities difficult.

Configuration Coordinates

Configuration coordinates are those which semantically locate an application in configuration space. So an application run in the US locale, in the test environment, located in the Western region of a cloud provider, in the Nevada data center and run on behalf of tenant number 34 (to use the examples from the Configuration Space section above) is located in configuration space with, perhaps, the following logical configuration coordinates:

locale=en_US
environment=test
region=west
dataCenter=Nevada
tenantId=34

While these coordinates look like configuration values themselves, they are configuration values for locating the application in configuration space, not (normally) the values that the application will be looking up during the course of its execution.

Configuration Properties

Configuration properties are the names for which (non-hard-coded) values are sought by an application. portNumber, timeoutInSeconds, databaseUrl and userEmail are arbitrary examles of configuration properties. These are, by definition, non-specific identifiers. They gain specificity only when further pinpointed in configuration space by a set of configuration coordinates. That is, databaseUrl is a configuration property that might have many different possible values for many different possible applications. The configuration property databaseUrl used by a particular application is only relevant when it is interpreted in the context of the appropriate set of configuration coordinates. For example, a configuration author may only be able to write a value for the databaseUrl configuration property when she knows that the value is supposed to be for the test environment in the Nevada data center on behalf of tenant 34. Or she may also be able to write a value for the databaseUrl configuration property when she knows that the value is supposed to be for the test environment and the Western region. As you can see, configuration coordinates are not hierarchical, and neither (necessarily) are configuration properties.

Configuration Values

Configuration values are two things: the values received by an application situated in configuration space by its configuration coordinates when that application asks for a value for a configuration property, and values that are written in such a way that they may be found by one or more such applications.

For example, a configuration author might write a value, red, for a hypothetical color configuration property, into a system somewhere, once. The author may decide (let's say) that this value is suited for any application possessing any configuration coordinates. In this case, the value received by an instance of application A identified by one set of configuration coordinates, asking for a value for the color configuration property will be the same as the value received by another instance of A identified by a different set of configuration coordinates asking for a value for the color configuration property. The author thus wrote one configuration value, but from the standpoint of the querying application instances, there are two values in play.

Configuration

A configuration is simply a collection of some configuration properties and their values designated for one or more points—identified by configuration coordinates—in configuration space.

org.microbean

microBean™

At the intersection of Java, Kubernetes and the enterprise.

Versions

Version
0.4.4
0.4.3
0.4.2
0.4.1
0.3.0
0.2.0
0.1.1
0.1.0