Accessing service configuration data

From CCIL
Revision as of 09:44, 13 June 2016 by Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

ConfigHelper is defined in the cybercore-api artefact. You can reference it using the following Maven snippet:

<dependency>
        <groupId>cybercore</groupId>
	<version>2.4.3-SNAPSHOT</version>
	<artifactId>cybercore-api</artifactId>
</dependency>

Usage

ConfigHelper config = LocalServer.createConfigHelper();

Getting data

String dictionaryBase = serviceConfig.getString(IGNORE_LIST_NS,
		PROP_DICTIONARY_LOCATION, SharpfindConstants.DEFAULT_DICTIONARY_LOCATION);