com.intrinsyc.janet
Class JanetProperties

java.lang.Object
  |
  +--com.intrinsyc.janet.JanetProperties

public final class JanetProperties
extends java.lang.Object

This class is not normally used by the end developer but the API is exposed nevertheless. It provides methods to detect various environment settings.

© 2007 Intrinsyc Software International, Inc. All rights reserved.

Version:
1.4

Field Summary
static java.lang.String CONFIG_FILE
          The default configuration file to use (when Janetor loads).
 
Constructor Summary
JanetProperties()
           
 
Method Summary
static java.lang.String getConfigFromFile()
          Checks for the presence of the VM parameter JANET_CONFIG_FILE and returns its value as a String, otherwise returns null.
static boolean isInternalLogging()
          Checks for the presence of the VM parameter JANET_INTERNAL_LOGGING and returns true if defined, and false otherwise.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_FILE

public static final java.lang.String CONFIG_FILE

The default configuration file to use (when Janetor loads).

See Also:
Constant Field Values
Constructor Detail

JanetProperties

public JanetProperties()
Method Detail

getConfigFromFile

public static java.lang.String getConfigFromFile()

Checks for the presence of the VM parameter JANET_CONFIG_FILE and returns its value as a String, otherwise returns null. This is used when launching a Java Server (.NET accessing Java) - the server must read the configuration file that is specified, otherwise, it will default to janet.xml in the current directory.

Returns:
The value of the VM parameter as a String, otherwise returns null.

isInternalLogging

public static boolean isInternalLogging()

Checks for the presence of the VM parameter JANET_INTERNAL_LOGGING and returns true if defined, and false otherwise. Internal logging generates a verbose log of the network activity.

Returns:
true if the VM parameter is defined, false otherwise.