public class Metadata extends Properties
| Modifier and Type | Field and Description |
|---|---|
static String |
APPLICATION_NAME |
static String |
APPLICATION_VERSION |
static String |
FILE |
defaults| Modifier and Type | Method and Description |
|---|---|
String |
getApplicationName() |
String |
getApplicationVersion() |
static Metadata |
getCurrent() |
String |
getEnvironment() |
static Metadata |
getInstance(File file)
Loads and returns a new Metadata object for the given File
|
static Metadata |
getInstance(InputStream inputStream)
Loads a Metadata instance from a Reader
|
Enumeration |
keys()
Overrides, called by the store method.
|
void |
persist()
Saves the current state of the Metadata object
|
boolean |
propertiesHaveNotChanged() |
Object |
put(Object key,
Object value) |
void |
putAll(Map<?,?> map) |
static Metadata |
reload()
Reloads the application metadata
|
Object |
remove(Object o) |
static void |
reset()
Resets the current state of the Metadata so it is re-read
|
Object |
setProperty(String name,
String value) |
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, store, store, storeToXML, storeToXML, stringPropertyNamespublic static final String FILE
public static final String APPLICATION_VERSION
public static final String APPLICATION_NAME
public static void reset()
public static Metadata getCurrent()
public static Metadata getInstance(InputStream inputStream)
inputStream - The InputStreampublic static Metadata getInstance(File file)
file - The Filepublic static Metadata reload()
public String getApplicationVersion()
public String getEnvironment()
public String getApplicationName()
public void persist()
public boolean propertiesHaveNotChanged()
public Object setProperty(String name, String value)
setProperty in class Propertiespublic void putAll(Map<?,?> map)
public Enumeration keys()