com.caucho.loader
Class EnvironmentProperties

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 com.caucho.loader.EnvironmentProperties
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,java.lang.Object>

public class EnvironmentProperties
extends java.util.Properties

Creates a ClassLoader-dependent properties table. The value of the EnvironmentLocal variable depends on the context ClassLoader.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Properties
defaults
 
Constructor Summary
EnvironmentProperties()
           
EnvironmentProperties(java.util.Properties global)
           
 
Method Summary
 void clear()
           
 java.lang.Object clone()
           
 boolean contains(java.lang.Object value)
           
 boolean containsKey(java.lang.Object value)
           
 boolean containsValue(java.lang.Object value)
           
 java.util.Enumeration elements()
           
static void enableEnvironmentSystemProperties(boolean isEnable)
           
 java.util.Set entrySet()
           
 boolean equals(java.lang.Object o)
           
 java.lang.Object get(java.lang.Object key)
           
 java.lang.Object get(java.lang.String key)
           
 java.util.Properties getGlobalProperties()
           
 java.lang.String getProperty(java.lang.String key)
           
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
           
 int hashCode()
           
 boolean isEmpty()
           
 java.util.Enumeration keys()
           
 java.util.Set keySet()
           
 java.util.Enumeration propertyNames()
           
 java.lang.Object put(java.lang.Object key, java.lang.Object value)
           
 java.lang.String put(java.lang.String key, java.lang.String value)
           
 java.lang.String remove(java.lang.Object key)
           
 void setGlobalProperties(java.util.Properties global)
           
 java.lang.Object setProperty(java.lang.String key, java.lang.String value)
           
 int size()
           
 java.lang.String toString()
           
 java.util.Collection values()
           
 java.lang.Object writeReplace()
           
 
Methods inherited from class java.util.Properties
list, list, load, load, loadFromXML, save, store, store, storeToXML, storeToXML, stringPropertyNames
 
Methods inherited from class java.util.Hashtable
putAll, rehash
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnvironmentProperties

public EnvironmentProperties(java.util.Properties global)

EnvironmentProperties

public EnvironmentProperties()
Method Detail

enableEnvironmentSystemProperties

public static void enableEnvironmentSystemProperties(boolean isEnable)

getGlobalProperties

public java.util.Properties getGlobalProperties()

setGlobalProperties

public void setGlobalProperties(java.util.Properties global)

size

public int size()
Specified by:
size in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
size in class java.util.Hashtable<java.lang.Object,java.lang.Object>

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
isEmpty in class java.util.Hashtable<java.lang.Object,java.lang.Object>

keys

public java.util.Enumeration keys()
Overrides:
keys in class java.util.Hashtable<java.lang.Object,java.lang.Object>

elements

public java.util.Enumeration elements()
Overrides:
elements in class java.util.Hashtable<java.lang.Object,java.lang.Object>

contains

public boolean contains(java.lang.Object value)
Overrides:
contains in class java.util.Hashtable<java.lang.Object,java.lang.Object>

containsValue

public boolean containsValue(java.lang.Object value)
Specified by:
containsValue in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
containsValue in class java.util.Hashtable<java.lang.Object,java.lang.Object>

containsKey

public boolean containsKey(java.lang.Object value)
Specified by:
containsKey in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
containsKey in class java.util.Hashtable<java.lang.Object,java.lang.Object>

get

public java.lang.Object get(java.lang.String key)

get

public java.lang.Object get(java.lang.Object key)
Specified by:
get in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
get in class java.util.Hashtable<java.lang.Object,java.lang.Object>

getProperty

public java.lang.String getProperty(java.lang.String key)
Overrides:
getProperty in class java.util.Properties

getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)
Overrides:
getProperty in class java.util.Properties

propertyNames

public java.util.Enumeration propertyNames()
Overrides:
propertyNames in class java.util.Properties

put

public java.lang.String put(java.lang.String key,
                            java.lang.String value)

setProperty

public java.lang.Object setProperty(java.lang.String key,
                                    java.lang.String value)
Overrides:
setProperty in class java.util.Properties

put

public java.lang.Object put(java.lang.Object key,
                            java.lang.Object value)
Specified by:
put in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
put in class java.util.Hashtable<java.lang.Object,java.lang.Object>

remove

public java.lang.String remove(java.lang.Object key)
Specified by:
remove in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
remove in class java.util.Hashtable<java.lang.Object,java.lang.Object>

clear

public void clear()
Specified by:
clear in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
clear in class java.util.Hashtable<java.lang.Object,java.lang.Object>

clone

public java.lang.Object clone()
Overrides:
clone in class java.util.Hashtable<java.lang.Object,java.lang.Object>

toString

public java.lang.String toString()
Overrides:
toString in class java.util.Hashtable<java.lang.Object,java.lang.Object>

keySet

public java.util.Set keySet()
Specified by:
keySet in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
keySet in class java.util.Hashtable<java.lang.Object,java.lang.Object>

entrySet

public java.util.Set entrySet()
Specified by:
entrySet in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
entrySet in class java.util.Hashtable<java.lang.Object,java.lang.Object>

values

public java.util.Collection values()
Specified by:
values in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
values in class java.util.Hashtable<java.lang.Object,java.lang.Object>

equals

public boolean equals(java.lang.Object o)
Specified by:
equals in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
equals in class java.util.Hashtable<java.lang.Object,java.lang.Object>

hashCode

public int hashCode()
Specified by:
hashCode in interface java.util.Map<java.lang.Object,java.lang.Object>
Overrides:
hashCode in class java.util.Hashtable<java.lang.Object,java.lang.Object>

writeReplace

public java.lang.Object writeReplace()
                              throws java.io.ObjectStreamException
Throws:
java.io.ObjectStreamException