Skip to content

Configuration

Purpose

The Platform 6 configuration stored in application.conf as a java.util.Properties object instance. All java.util.Properties methods are available but changes to the instance are not reflected to the actual configuration.

Methods

Binding name: p6.configuration


get

Get the value of the configuration property identified by key.

Syntax

String p6.configuration.get(String key)
Example
println p6.configuration.get('instance.id')

p6.configuration.stringPropertyNames().each { name ->
    println 'name: ' + name + ' value: ' + p6.configuration.get( name )
}