public final class IfsProperties
extends java.lang.Object
If a value of an IFS property is used many times then consider storing its value in a local or static variable, but note that after
a call to load() such variables may become invalid.
Methods returning mandatory properties may throw FndProperties.PropertyNotFoundException, which is a RuntimeException.
Application code may catch this exception and convert it to an IfsException.
IfsConfigDirectory| Modifier and Type | Class and Description |
|---|---|
static class |
FndProperties.PropertyNotFoundException
RuntimeException indicating that a specific IFS property has not been found in the configuration file.
|
| Modifier and Type | Field and Description |
|---|---|
protected static ifs.fnd.service.FndProperties |
ifsProperties
The singleton instance of FndProperties.
|
| Constructor and Description |
|---|
IfsProperties() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
forceProperty(java.lang.String name)
Gets a mandatory IFS property.
|
static java.lang.String |
getApplicationOwner()
Gets database owner of IFS tables, views and packages.
|
static boolean |
getChangePasswordEnabled()
Gets boolean property indicating if it is allowed to change account passwords.
|
static java.lang.String |
getCompressionLevel()
Gets compression level used by Client, Anonymous and SOAP Gateways for response compression.
|
static java.lang.String |
getConnectionString()
Gets the connection string to SOAP Gateway.
|
static java.lang.String |
getConnectPassword()
Gets IFS Connect user password.
|
static java.lang.String |
getConnectUser()
Gets IFS Connect user.
|
static java.lang.String |
getDbPassword()
Gets the database user password for JDBC connections.
|
static java.lang.String |
getDbUser()
Gets the database user (IFSSYS) for JDBC connections.
|
static int |
getDefaultFetchSize()
Gets the default fetch size used when fetching results from database.
|
static int |
getDefaultStatementExecutionTimeout()
Gets the default database statement execution timeout to use for proxy sessions.
|
static java.lang.String |
getFullyQualifiedDomainName()
Deprecated.
|
static java.lang.String |
getJdbcDriverClass()
Gets the JDBC driver implementation class name.
|
static java.lang.String |
getJdbcUrl()
Gets database connection URL for JDBC driver.
|
static int |
getMaxFetchSize()
Gets the maximum fetch size used when fetching results from database.
|
static java.lang.String |
getProperty(java.lang.String name)
Gets an IFS property.
|
static boolean |
getProperty(java.lang.String name,
boolean defaultValue)
Gets an optional IFS property.
|
static int |
getProperty(java.lang.String name,
int defaultValue)
Gets an optional IFS property.
|
static java.lang.String |
getProperty(java.lang.String name,
java.lang.String defaultValue)
Gets an optional IFS property.
|
static int |
getStatementCacheSize()
Gets the size of the statement cache in the JDBC driver.
|
static java.lang.String |
getTeamServer()
Gets the Team Server property.
|
static java.lang.String |
getTransformerFactory()
Gets the TransformerFactory implementation class name.
|
protected boolean |
isLogInfo() |
static void |
load()
Loads all IFS properties from file 'ifs.properties' located in the IFS configuration directory.
|
protected void |
logError(java.lang.String text) |
protected void |
logError(java.lang.Throwable t) |
protected void |
logError(java.lang.Throwable t,
java.lang.String text) |
protected void |
logInfo(java.lang.String text) |
protected static volatile ifs.fnd.service.FndProperties ifsProperties
public static void load()
IfsConfigDirectorypublic static boolean getChangePasswordEnabled()
PropertyNotFoundException - - if the property has not been foundpublic static int getDefaultFetchSize()
public static int getMaxFetchSize()
public static int getStatementCacheSize()
public static int getDefaultStatementExecutionTimeout()
public static java.lang.String getTransformerFactory()
public static java.lang.String getTeamServer()
public static java.lang.String getCompressionLevel()
public static java.lang.String getConnectionString()
PropertyNotFoundException - - if the property has not been foundpublic static java.lang.String getConnectUser()
public static java.lang.String getConnectPassword()
PropertyNotFoundException - - if the property has not been foundpublic static java.lang.String getFullyQualifiedDomainName()
protected boolean isLogInfo()
protected void logInfo(java.lang.String text)
protected void logError(java.lang.String text)
protected void logError(java.lang.Throwable t)
protected void logError(java.lang.Throwable t,
java.lang.String text)
public static java.lang.String getProperty(java.lang.String name)
name - the name of the propertypublic static java.lang.String getProperty(java.lang.String name,
java.lang.String defaultValue)
name - the name of the propertydefaultValue - the default valuepublic static boolean getProperty(java.lang.String name,
boolean defaultValue)
name - the name of the propertydefaultValue - the default valuepublic static int getProperty(java.lang.String name,
int defaultValue)
name - the name of the propertydefaultValue - the default valuepublic static java.lang.String forceProperty(java.lang.String name)
name - the name of the propertyFndProperties.PropertyNotFoundException - - if the property has not been foundpublic static java.lang.String getApplicationOwner()
public static java.lang.String getJdbcDriverClass()
public static java.lang.String getJdbcUrl()
FndProperties.PropertyNotFoundException - - if the property has not been foundpublic static java.lang.String getDbUser()
public static java.lang.String getDbPassword()
FndProperties.PropertyNotFoundException - - if the property has not been found