Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-04

oracle.dss.util.xdo.common.config
Class ConfigLocation

java.lang.Object
  extended by oracle.dss.util.xdo.common.config.ConfigLocation

public class ConfigLocation
extends java.lang.Object

You can get the site level default configuration files through this class. The path will vary from the environment and the system properties.
Usage)
// Get core config file ( xdo.cfg )
String xdoCfg = ConfigLocation.getPath( ConfigLocation.CORE );

// Get delivery server config file ( xdodelivery.cfg )
String xdoDeliveryCfg = ConfigLocation.getPath( ConfigLocation.DELIVERY );

// Get the debug config file ( xdodebug.cfg )
String xdoDebugCfg = ConfigLocation.getPath( ConfigLocation.DEBUG );


Field Summary
static int CORE
           
static int DEBUG
           
static int DELIVERY
           
 
Constructor Summary
ConfigLocation()
           
 
Method Summary
static java.lang.String getJavaHome()
          Get java.home defined in the system properties.
static java.lang.String getPath(int type)
          Returns the absolute path for the specified configuration file.
static java.lang.String getXDOFontDir()
          Returns the XDO's font directory.
static java.lang.String getXDOTOP()
          Get XDO_TOP defined in the system properties or returns null if it's not defined.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CORE

public static final int CORE
See Also:
Constant Field Values

DELIVERY

public static final int DELIVERY
See Also:
Constant Field Values

DEBUG

public static final int DEBUG
See Also:
Constant Field Values
Constructor Detail

ConfigLocation

public ConfigLocation()
Method Detail

getPath

public static java.lang.String getPath(int type)
Returns the absolute path for the specified configuration file. Returns null if there is no specified configuration file. Search path: 1. "xdo.ConfigFile" and "xdo.DeliveryConfigFile" system properties ( Absolute paths for the config files ) 2. "XDO_TOP" system property ( XDO's top directory ) 3. "java.home/lib"

Parameters:
type -
Returns:

getXDOTOP

public static java.lang.String getXDOTOP()
Get XDO_TOP defined in the system properties or returns null if it's not defined. The returned string is terminated by the File.separator ('/' or '\').

Returns:
XDO_TOP or null if it's not defined.

getJavaHome

public static java.lang.String getJavaHome()
Get java.home defined in the system properties. The returned string is terminated by the File.separator ('/' or '\').

Returns:
java.home

getXDOFontDir

public static java.lang.String getXDOFontDir()
Returns the XDO's font directory. Usually, it's "/lib/fonts/". But if a hidden System property (XDO_FONT_DIR) is defined, "" will be returned. The returned string is terminated by the File.separator ('/' or '\').

Returns:
XDO font directory

Oracle Fusion Middleware Java API Reference for Oracle Data Visualization Components
11g Release 1 (11.1.1)

E12063-04

Copyright © 1997, 2010, Oracle. All rights reserved.