net.charlesames.utility.io
Class PomProperties

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

public class PomProperties
extends java.lang.Object

Singleton class which extracts Maven pom.properties info from the application resource

Author:
Charles Ames

Method Summary
 java.lang.String getProperty(java.lang.String name)
          Get the property with the indicated name.
static PomProperties getSingleton(java.lang.Class<?> resourceClass, java.lang.String groupID, java.lang.String artifactID)
          Get the singleton PomProperties instance.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getSingleton

public static PomProperties getSingleton(java.lang.Class<?> resourceClass,
                                         java.lang.String groupID,
                                         java.lang.String artifactID)
Get the singleton PomProperties instance.

Parameters:
resourceClass - The class of the object which holds the resource.
groupID - Maven group ID
artifactID - Maven artifact ID
Returns:
The singleton PomProperties 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.