VLab Common 1.2

pl.psnc.vlab.conf.impl
Class ConfigurationImpl

java.lang.Object
  extended by pl.psnc.vlab.conf.impl.ConfigurationImpl
All Implemented Interfaces:
IConfiguration

public class ConfigurationImpl
extends java.lang.Object
implements IConfiguration

ConfigurationImpl class - implementation of IConfiguration interface. This class is used for retrieving user custom properties.

Author:
Dominik Stoklosa (~osa~)
Email address
osa@man.poznan.pl

Field Summary
 
Fields inherited from interface pl.psnc.vlab.conf.IConfiguration
KEY_APP_CONF_DIR, KEY_APP_NAME, KEY_AUTH_MODULE_LOCATION, KEY_COMM_PROXY_LOCATION, KEY_GS_MODULE_LOCATION, KEY_KEYSTORE, KEY_KEYSTORE_PASSWD, KEY_MON_MODULE_LOCATION, KEY_SMM_MODULE_LOCATION, KEY_SZD_MODULE_LOCATION, KEY_TRUSTSTORE, KEY_TRUSTSTORE_PASSWD
 
Constructor Summary
ConfigurationImpl(java.lang.String appConfig)
          Creates a new instance of ConfigurationImpl
 
Method Summary
 java.lang.String getAppName()
          Get application name
 java.lang.String getAuthModuleLocation()
          Get Authentication Module Location
 java.lang.String getCommProxyLocation()
          Get Communication Proxy Module
 java.lang.String getGlobalSchedulerModuleLocation()
          Get Global Scheduler Module Location
 java.lang.String getKeyStore()
          Get keystore for the application
 java.lang.String getKeyStorePasswd()
          Get keystore password
 java.lang.String getMonitoringModuleLocation()
          Get Monitoring Module Location
 java.lang.String getProperty(java.lang.String key)
          The custom property getter method by the given key name
 java.lang.String getSMMModuleLocation()
          Get SMM Module Location
 java.lang.String getSystemConfDir()
          Returns the absolute path to the folder, where all the configuration settings is stored.
 java.lang.String getSZDModuleLocation()
          Get SZD Module Location
 java.lang.String getTrustStore()
          Get truststore for the application
 java.lang.String getTrustStorePasswd()
          Get truststore password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationImpl

public ConfigurationImpl(java.lang.String appConfig)
                  throws VlabException
Creates a new instance of ConfigurationImpl

Parameters:
appConfig - a path to the file, which contains the app configuration (as a properties)
Throws:
VlabException
Method Detail

getSystemConfDir

public java.lang.String getSystemConfDir()
Returns the absolute path to the folder, where all the configuration settings is stored.

Specified by:
getSystemConfDir in interface IConfiguration
Returns:
path to the configuration folder

getAppName

public java.lang.String getAppName()
Get application name

Specified by:
getAppName in interface IConfiguration
Returns:
application name

getKeyStore

public java.lang.String getKeyStore()
Get keystore for the application

Specified by:
getKeyStore in interface IConfiguration
Returns:
keystore

getKeyStorePasswd

public java.lang.String getKeyStorePasswd()
Get keystore password

Specified by:
getKeyStorePasswd in interface IConfiguration
Returns:
keystore password

getTrustStore

public java.lang.String getTrustStore()
Get truststore for the application

Specified by:
getTrustStore in interface IConfiguration
Returns:
truststore for the application

getTrustStorePasswd

public java.lang.String getTrustStorePasswd()
Get truststore password

Specified by:
getTrustStorePasswd in interface IConfiguration
Returns:
truststore password

getCommProxyLocation

public java.lang.String getCommProxyLocation()
Get Communication Proxy Module

Specified by:
getCommProxyLocation in interface IConfiguration
Returns:
location of the commProxy module

getAuthModuleLocation

public java.lang.String getAuthModuleLocation()
Get Authentication Module Location

Specified by:
getAuthModuleLocation in interface IConfiguration
Returns:
location of the Authentication Module

getMonitoringModuleLocation

public java.lang.String getMonitoringModuleLocation()
Get Monitoring Module Location

Specified by:
getMonitoringModuleLocation in interface IConfiguration
Returns:
location of the Monitoring Module

getGlobalSchedulerModuleLocation

public java.lang.String getGlobalSchedulerModuleLocation()
Get Global Scheduler Module Location

Specified by:
getGlobalSchedulerModuleLocation in interface IConfiguration
Returns:
location of the Global Scheduler Module

getSMMModuleLocation

public java.lang.String getSMMModuleLocation()
Get SMM Module Location

Specified by:
getSMMModuleLocation in interface IConfiguration
Returns:
location of the SMM Module

getSZDModuleLocation

public java.lang.String getSZDModuleLocation()
Get SZD Module Location

Specified by:
getSZDModuleLocation in interface IConfiguration
Returns:
location of the SZD Module

getProperty

public java.lang.String getProperty(java.lang.String key)
The custom property getter method by the given key name

Specified by:
getProperty in interface IConfiguration
Parameters:
key - the name of the property key @ the VlabException is thrown when the key is not found
Returns:
the value of the given key or VlabException

VLab Common 1.2

Copyright 2004 by VLAB Dominik Stoklosa.