|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.Dictionary<K,V> java.util.Hashtable<Object,Object> java.util.Properties grails.util.Metadata
public class Metadata
Represents the application Metadata and loading mechanics
Nested Class Summary | |
---|---|
(package private) static class |
Metadata.FinalReference<T>
|
Field Summary | |
---|---|
static String |
APPLICATION_GRAILS_VERSION
|
static String |
APPLICATION_NAME
|
static String |
APPLICATION_VERSION
|
static String |
DEFAULT_SERVLET_VERSION
|
static String |
FILE
|
static String |
SERVLET_VERSION
|
static String |
WAR_DEPLOYED
|
Fields inherited from class java.util.Properties |
---|
defaults |
Method Summary | |
---|---|
String |
getApplicationName()
|
String |
getApplicationVersion()
|
static Metadata |
getCurrent()
|
String |
getEnvironment()
|
String |
getGrailsVersion()
|
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 |
String |
getServletVersion()
|
boolean |
isWarDeployed()
|
Enumeration |
keys()
Overrides, called by the store method. |
void |
persist()
Saves the current state of the Metadata object |
boolean |
propertiesHaveNotChanged()
|
static Metadata |
reload()
Reloads the application metadata |
static void |
reset()
Resets the current state of the Metadata so it is re-read |
Methods inherited from class java.util.Properties |
---|
getProperty, getProperty, list, list, load, load, loadFromXML, propertyNames, save, setProperty, store, store, storeToXML, storeToXML, stringPropertyNames |
Methods inherited from class java.util.Hashtable |
---|
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String FILE
public static final String APPLICATION_VERSION
public static final String APPLICATION_NAME
public static final String APPLICATION_GRAILS_VERSION
public static final String SERVLET_VERSION
public static final String WAR_DEPLOYED
public static final String DEFAULT_SERVLET_VERSION
Method Detail |
---|
public static void reset()
public static Metadata getCurrent()
public static Metadata getInstance(InputStream inputStream)
inputStream
- The InputStream
public static Metadata getInstance(File file)
file
- The File
public static Metadata reload()
public String getApplicationVersion()
public String getGrailsVersion()
public String getEnvironment()
public String getApplicationName()
public String getServletVersion()
public void persist()
public boolean propertiesHaveNotChanged()
public Enumeration keys()
keys
in class Hashtable<Object,Object>
public boolean isWarDeployed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |