|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eaglei.repository.Configuration
public class Configuration
This is a singleton class that manages configuration info. It is created by the Lifecycle singleton. Important configuration variables: - Sesame repository object (not the connection, but what makes connections) - Default namespace - Title (in configuration)
| Field Summary | |
|---|---|
static java.lang.String |
DATAMODEL_SOURCE
Contains URL of datamodel source within this webapp |
static java.lang.String |
INSTANCE_CSS
CSS stylesheet for HTML dissemination output, if any |
static java.lang.String |
INSTANCE_JS
List of JavaScript URLs to be included in HTML dissemination output |
static java.lang.String |
INSTANCE_XSLT
stylesheet for transforming HTML dissemination output, if any |
static java.lang.String |
LOGDIR
optional alternate log directory |
static java.lang.String |
NAMESPACE
namespace URI prefix for local resources |
static java.lang.String |
SESAMEDIR
required subdirectory for sesame nativestore files |
static java.lang.String |
SESAMEINDEXES
optional sesame nativestore index configuration |
static java.lang.String |
TITLE
title of repository for UI labels |
| Method Summary | |
|---|---|
java.lang.String |
getBranch()
Get the source SCM branch, if any. |
java.lang.String |
getConfigurationProperty(java.lang.String key)
getConfigurationProperty |
java.lang.String |
getConfigurationProperty(java.lang.String key,
java.lang.String dflt)
return default if there is no value for the indicated property. |
java.lang.String[] |
getConfigurationPropertyArray(java.lang.String key,
java.lang.String[] dfault)
Gets a configuration property with multiple values, returned in an array. |
boolean |
getConfigurationPropertyAsBoolean(java.lang.String key,
boolean dflt)
return boolean value of a config property |
java.lang.String |
getDefaultNamespace()
Get value of default namespace prefix for URIs created by the repository. |
java.io.File |
getHomeDirectory()
getHomeDirectory - get configured repository home directory. |
static Configuration |
getInstance()
Get the singleton instance. |
java.lang.String |
getProjectVersion()
Get the Maven project version |
java.lang.String |
getRevision()
Get the source revision, e.g. |
java.io.File |
getSesameDirectory()
Return the directory (creating it if necessary) for Sesame NativeStore files. |
java.lang.String |
getSesameVersion()
Get version of Sesame triplestore libraries |
java.lang.String |
getTimestamp()
Get the time when this software version was built Depends on the build properties file left in place by maven. |
void |
initialize()
Explicit initialization, invoked by bootstrap sequence in Lifecycle. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAMESPACE
public static final java.lang.String LOGDIR
public static final java.lang.String SESAMEDIR
public static final java.lang.String SESAMEINDEXES
public static final java.lang.String TITLE
public static final java.lang.String INSTANCE_XSLT
public static final java.lang.String INSTANCE_CSS
public static final java.lang.String INSTANCE_JS
public static final java.lang.String DATAMODEL_SOURCE
| Method Detail |
|---|
public static Configuration getInstance()
Configuration object.
public void initialize()
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String getDefaultNamespace()
String object.public java.lang.String getConfigurationProperty(java.lang.String key)
getConfigurationProperty
key - a String object.
public java.lang.String getConfigurationProperty(java.lang.String key,
java.lang.String dflt)
key - a String object.dflt - default value to return if not set a String object.
public java.lang.String[] getConfigurationPropertyArray(java.lang.String key,
java.lang.String[] dfault)
key - a String object.
String objects, or null if not set.
public boolean getConfigurationPropertyAsBoolean(java.lang.String key,
boolean dflt)
key - a String object.dflt - default value to return if no config found.
public java.lang.String getProjectVersion()
String object.public java.lang.String getRevision()
String object.public java.lang.String getBranch()
public java.lang.String getTimestamp()
String object.
public java.io.File getHomeDirectory()
throws java.io.IOException
getHomeDirectory - get configured repository home directory.
Find the root of the repository configuration and data hierarchy. It will be the first one of these that exists: a. value of system property "org.eaglei.repository.home" b. otherwise, default is "$HOME/eaglei/repository/" (where $HOME == System.getProperty("user.home") in Java-land) ALSO, this sets the system property to the default if it was unset before, so e.g. Apache config interpolation will work.
File object.
java$io$IOException - if any.
java.io.IOException
public java.lang.String getSesameVersion()
throws java.io.IOException
java.io.IOException
public java.io.File getSesameDirectory()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||