ClasspathPropertiesConfiguration Class

  • java.lang.Object
    • com.microsoft.bot.integration.ClasspathPropertiesConfiguration

Implements

public class ClasspathPropertiesConfiguration
implements Configuration

Provides access to properties defined in a Properties file located on the classpath.

Constructor Summary

Constructor Description
ClasspathPropertiesConfiguration()

Loads properties from the 'application.properties' file.

Method Summary

Modifier and Type Method and Description
java.util.Properties getProperties()

Returns the Properties in the Configuration.

java.lang.String[] getProperties(String key)

Returns an array of values from an entry that is comma delimited.

java.lang.String getProperty(String key)

Returns a value for the specified property name.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

ClasspathPropertiesConfiguration

public ClasspathPropertiesConfiguration()

Loads properties from the 'application.properties' file.

Method Details

getProperties

public Properties getProperties()

Returns the Properties in the Configuration.

Returns:

The Properties value.

getProperties

public String[] getProperties(String key)

Returns an array of values from an entry that is comma delimited.

Parameters:

key - The property name.

Returns:

The property values as a String array.

getProperty

public String getProperty(String key)

Returns a value for the specified property name.

Parameters:

key - The property name.

Returns:

The property value.

Applies to