com.fuse
Class FUSEEnvironment

java.lang.Object
  extended by com.fuse.FUSEEnvironment

public class FUSEEnvironment
extends java.lang.Object

FUSEEnvironment is as a central class for environment variables


Constructor Summary
FUSEEnvironment()
           
 
Method Summary
static AccessControl getAccessControl()
          Returns accesscontrol object
static FUSEAuthenticator getAuthenticator()
           
static DatabaseProxy getDatabaseProxy()
           
static int getIntProperty(java.lang.String name)
          Returns an integer property
static int getIntProperty(java.lang.String name, int def)
          Returns an integer property
static java.util.Properties getProperties()
           
static java.lang.String getProperty(java.lang.String name)
          Get one named property
static java.lang.String getProperty(java.lang.String name, java.lang.String def)
          Get one named property and use default if not found
static FUSERegister getRegister()
           
static SecretKey getSecretKey()
           
static java.util.Date getStartupTime()
          Returns the time when the server was started up
static java.lang.String getVersion()
          Returns the FUSEServer version
static void init(java.lang.String tpropertiesFile)
          Initialize properties
static void reloadProperties()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FUSEEnvironment

public FUSEEnvironment()
Method Detail

reloadProperties

public static void reloadProperties()
                             throws java.lang.Exception
Throws:
java.lang.Exception

getSecretKey

public static SecretKey getSecretKey()

init

public static void init(java.lang.String tpropertiesFile)
                 throws java.lang.Exception
Initialize properties

Throws:
java.lang.Exception

getVersion

public static java.lang.String getVersion()
Returns the FUSEServer version


getStartupTime

public static java.util.Date getStartupTime()
Returns the time when the server was started up


getRegister

public static FUSERegister getRegister()

getAuthenticator

public static FUSEAuthenticator getAuthenticator()

getDatabaseProxy

public static DatabaseProxy getDatabaseProxy()

getIntProperty

public static int getIntProperty(java.lang.String name,
                                 int def)
Returns an integer property


getIntProperty

public static int getIntProperty(java.lang.String name)
                          throws java.lang.NumberFormatException
Returns an integer property

Throws:
java.lang.NumberFormatException

getAccessControl

public static AccessControl getAccessControl()
Returns accesscontrol object


getProperty

public static java.lang.String getProperty(java.lang.String name)
Get one named property

Returns:
the value of that property, or null if it does not exist

getProperties

public static java.util.Properties getProperties()

getProperty

public static java.lang.String getProperty(java.lang.String name,
                                           java.lang.String def)
Get one named property and use default if not found

Parameters:
name -
def - default
Returns:
the value of that property, or null if it does not exist