com.valhalla.settings
Class Arguments

java.lang.Object
  extended byjava.util.Dictionary
      extended byjava.util.Hashtable
          extended byjava.util.Properties
              extended bycom.valhalla.settings.Arguments
All Implemented Interfaces:
java.lang.Cloneable, java.util.Map, java.io.Serializable

public class Arguments
extends java.util.Properties

This is a singleton class. setArguments can only be called once. It can only have one reference to it, which is created inside the class.

Version:
1.0
Author:
Adam Olsen
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.util.Hashtable
 
Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Method Summary
static Arguments getInstance()
          Gets the Arguments instance
static void setArguments(java.lang.String[] args)
          Initializes the arguments class with the CLI arguments
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, propertyNames, save, setProperty, store
 
Methods inherited from class java.util.Hashtable
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

setArguments

public static void setArguments(java.lang.String[] args)
Initializes the arguments class with the CLI arguments

Parameters:
args - to be passed in from main( String args )

getInstance

public static Arguments getInstance()
Gets the Arguments instance

Returns:
the Arguments instance