ch.javasoft.util.logging
Enum SystemProperties

java.lang.Object
  extended by java.lang.Enum<SystemProperties>
      extended by ch.javasoft.util.logging.SystemProperties
All Implemented Interfaces:
Serializable, Comparable<SystemProperties>

public enum SystemProperties
extends Enum<SystemProperties>

Constants for system property names related to logging configuration. See LogManager for more information about logging configuration.


Enum Constant Summary
LogManagerPropertiesClass
          Constant for the java.util.logging.config.class system property
LogManagerPropertiesFile
          Constant for the java.util.logging.config.file system property
 
Method Summary
 String getPropertyName()
          Returns the system property name
 String getSystemProperty()
          Returns the value for this property, that is, System.getProperty(String) is called
 String getSystemProperty(String defaultValue)
          Returns the value for this property or the given default value if not such property is configured.
static SystemProperties valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SystemProperties[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LogManagerPropertiesFile

public static final SystemProperties LogManagerPropertiesFile
Constant for the java.util.logging.config.file system property


LogManagerPropertiesClass

public static final SystemProperties LogManagerPropertiesClass
Constant for the java.util.logging.config.class system property

Method Detail

values

public static SystemProperties[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SystemProperties c : SystemProperties.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SystemProperties valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getPropertyName

public String getPropertyName()
Returns the system property name


getSystemProperty

public String getSystemProperty()
Returns the value for this property, that is, System.getProperty(String) is called


getSystemProperty

public String getSystemProperty(String defaultValue)
Returns the value for this property or the given default value if not such property is configured. Equivalent to calling System.getProperty(String, String)