net.spy.memcached
Class BuildInfo

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<java.lang.Object,java.lang.Object>
          extended by java.util.Properties
              extended by net.spy.memcached.BuildInfo
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public class BuildInfo
extends java.util.Properties

Information regarding this spy.jar build. The following properties will be set at build time:

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
  BuildInfo()
          Get an instance of BuildInfo that describes the spy.jar build.
protected BuildInfo(java.lang.String resource)
          Get an instance of BuildInfo that describes the build info found in the given resource.
 
Method Summary
 java.util.Date getBuildDate()
          Get the date of this build.
 java.net.URL getFile(java.lang.String rel)
          Get a URL to a file within this classloader.
static void main(java.lang.String[] args)
          Print out the build properties.
 java.lang.String toString()
          String me.
 
Methods inherited from class java.util.Properties
getProperty, getProperty, list, list, load, loadFromXML, propertyNames, save, setProperty, store, storeToXML, storeToXML
 
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, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BuildInfo

public BuildInfo()
          throws java.io.IOException
Get an instance of BuildInfo that describes the spy.jar build.

Throws:
java.io.IOException

BuildInfo

protected BuildInfo(java.lang.String resource)
             throws java.io.IOException
Get an instance of BuildInfo that describes the build info found in the given resource.

Throws:
java.io.IOException
Method Detail

getBuildDate

public java.util.Date getBuildDate()
Get the date of this build.


getFile

public java.net.URL getFile(java.lang.String rel)
                     throws java.io.FileNotFoundException
Get a URL to a file within this classloader.

Parameters:
rel - the relative name (i.e. net.spy.changelog)
Returns:
the URL
Throws:
java.io.FileNotFoundException - if the file cannot be found

toString

public java.lang.String toString()
String me.

Overrides:
toString in class java.util.Hashtable<java.lang.Object,java.lang.Object>

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Print out the build properties.

Throws:
java.lang.Exception