Package org.adempiere.util
Class ServerContextPropertiesWrapper
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<Object,Object>
java.util.Properties
org.adempiere.util.ServerContextPropertiesWrapper
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,
Object>
Properties
wrapper for access to thread local server context.Delegate all method calls to
ServerContext.getCurrentInstance()
.- Author:
- hengsin
- See Also:
-
Field Summary
Fields inherited from class java.util.Properties
defaults
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
clone()
boolean
boolean
containsKey
(Object key) boolean
containsValue
(Object value) elements()
entrySet()
boolean
getProperty
(String key) getProperty
(String key, String defaultValue) int
hashCode()
boolean
isEmpty()
keys()
keySet()
void
list
(PrintStream out) void
list
(PrintWriter out) void
load
(InputStream inStream) void
void
Enumeration<?>
void
void
save
(OutputStream out, String comments) setProperty
(String key, String value) int
size()
void
store
(OutputStream out, String comments) void
void
storeToXML
(OutputStream os, String comment) void
storeToXML
(OutputStream os, String comment, String encoding) toString()
values()
Methods inherited from class java.util.Properties
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, rehash, remove, replace, replace, replaceAll, storeToXML
-
Constructor Details
-
ServerContextPropertiesWrapper
public ServerContextPropertiesWrapper()Default constructor
-
-
Method Details
-
setProperty
- Overrides:
setProperty
in classProperties
-
load
- Overrides:
load
in classProperties
- Throws:
IOException
-
load
- Overrides:
load
in classProperties
- Throws:
IOException
-
save
- Overrides:
save
in classProperties
-
store
- Overrides:
store
in classProperties
- Throws:
IOException
-
store
- Overrides:
store
in classProperties
- Throws:
IOException
-
loadFromXML
- Overrides:
loadFromXML
in classProperties
- Throws:
IOException
InvalidPropertiesFormatException
-
storeToXML
- Overrides:
storeToXML
in classProperties
- Throws:
IOException
-
storeToXML
- Overrides:
storeToXML
in classProperties
- Throws:
IOException
-
getProperty
- Overrides:
getProperty
in classProperties
-
getProperty
- Overrides:
getProperty
in classProperties
-
propertyNames
- Overrides:
propertyNames
in classProperties
-
stringPropertyNames
- Overrides:
stringPropertyNames
in classProperties
-
list
- Overrides:
list
in classProperties
-
list
- Overrides:
list
in classProperties
-
size
public int size() -
isEmpty
public boolean isEmpty() -
keys
- Overrides:
keys
in classProperties
-
elements
- Overrides:
elements
in classProperties
-
contains
- Overrides:
contains
in classProperties
-
containsValue
- Specified by:
containsValue
in interfaceMap<Object,
Object> - Overrides:
containsValue
in classProperties
-
containsKey
- Specified by:
containsKey
in interfaceMap<Object,
Object> - Overrides:
containsKey
in classProperties
-
get
-
put
-
remove
-
putAll
-
clear
public void clear() -
clone
- Overrides:
clone
in classProperties
-
toString
- Overrides:
toString
in classProperties
-
keySet
-
entrySet
-
values
-
equals
-
hashCode
public int hashCode()
-