public class Registry extends RegistrySet
RegistrySet properties, either read from the main property
file (PROPERTIES_FILE) or from their own files.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_DBC
(missing javadoc)
|
static String |
DEFAULT_DBM
(missing javadoc)
|
static String |
DEFAULT_SPREADSHEET_PACKAGE
(missing javadoc)
|
static String |
DEFAULT_SRV
(missing javadoc)
|
static String |
DEFAULT_XMLCONV_PACKAGE
(missing javadoc)
|
static String |
SRV_APP_PRE
(missing javadoc)
|
props| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
This is a singleton, clone is not supported.
|
String |
getApplicationProperty(String fileName,
String propName)
Get an application property.
|
String |
getDatabaseContextProperty(String context,
String propName)
Get a database context property.
|
String |
getDatabaseMappingProperty(String mapping,
String propName)
Get a database mapping property.
|
String |
getDatabaseServerProperty(String server,
String propName)
Get a database server property.
|
String |
getG9Property(String propName)
Get a property from the main property file.
|
String |
getProperty(String setType,
String setName,
String propName)
Get a property from the given
RegistrySet type. |
static Registry |
getRegistry() |
RegistrySet |
getRegistrySet(String setType,
String setName)
Get the
RegistrySet for the given type and name. |
boolean |
hasG9Propery(String propName)
Check if a property is set in the main property file
|
getProperty, iterator, loadPropertiespublic static final String SRV_APP_PRE
public static final String DEFAULT_SRV
public static final String DEFAULT_DBM
public static final String DEFAULT_DBC
public static final String DEFAULT_XMLCONV_PACKAGE
public static final String DEFAULT_SPREADSHEET_PACKAGE
public String getApplicationProperty(String fileName, String propName)
RegistrySet for
each application (using its own property file).fileName - the name of the property file name (without extention).propName - the name of the property to get.public String getDatabaseContextProperty(String context, String propName)
DBC_PRE.context - the name of the database context.propName - the name of the property to get.public String getDatabaseServerProperty(String server, String propName)
DBS_PRE.server - the name of the database server.propName - the name of the property to get.public String getDatabaseMappingProperty(String mapping, String propName)
DBM_PRE.mapping - the name of the database mapping.propName - the name of the property to get.public String getG9Property(String propName)
propName - the name of the property to get.public boolean hasG9Propery(String propName)
propName - the name of the properytrue if the property is set, otherwise falsepublic String getProperty(String setType, String setName, String propName)
RegistrySet type.setType - the type of the registry set.setName - the name of the registry set.propName - the name of the property.public RegistrySet getRegistrySet(String setType, String setName)
RegistrySet for the given type and name.setType - the type of the registry set.setName - the name of the registry set.RegistrySet.public static Registry getRegistry()
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException - (missing javadoc)Copyright © 2006–2018 Esito AS. All rights reserved.