net.charlesames.utility.io
Class ManifestProperties

java.lang.Object
  extended by net.charlesames.utility.io.ManifestProperties

public class ManifestProperties
extends java.lang.Object

Singleton class which extracts MANIFEST.MF info from the application resource

Author:
Charles Ames

Method Summary
 java.util.jar.Attributes getAttributes()
          Get the manifest attributes.
 java.lang.String getProperty(java.lang.String name)
          Get the property with the indicated name.
static ManifestProperties getSingleton(java.lang.Class<?> resourceClass)
          Get singleton ManifestProperties instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSingleton

public static ManifestProperties getSingleton(java.lang.Class<?> resourceClass)
Get singleton ManifestProperties instance.

Parameters:
resourceClass - The class of the object which holds the resource.
Returns:
The singleton ManifestProperties instance.

getProperty

public java.lang.String getProperty(java.lang.String name)
Get the property with the indicated name.

Parameters:
name - The indicated name.
Returns:
The property with the indicated name. Null if name not found.

getAttributes

public java.util.jar.Attributes getAttributes()
Get the manifest attributes.

Returns:
The manifest attributes.