Class ServletPropertyMgr
java.lang.Object
fc.util.PropertyMgr
fc.web.servlet.ServletPropertyMgr
Loads properties for a servlet. Intended to be used in
application/context scope by all servlets belonging to one web
context/application.
ThreadSafety: This class is thread safe and can be used by multiple threads concurrently.
- Version:
- 1.0 12/30/2001
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the property associated with the specified key or null if the property was not found.voidsave()Saves any properties that were set previously.Sets the property associated with the specified key.Methods inherited from class PropertyMgr
get, getBoolean, getInt, getRequired, getRequiredBoolean, getRequiredInt, setUsage
-
Constructor Details
-
ServletPropertyMgr
- Parameters:
context- theServletContextto load init parameters from.- Throws:
IOException
-
-
Method Details
-
get
Description copied from class:PropertyMgrReturns the property associated with the specified key or null if the property was not found.- Specified by:
getin classPropertyMgr- Parameters:
name- the property key
-
save
Description copied from class:PropertyMgrSaves any properties that were set previously. This method does not need to be called if properties were only read, however if any property was modified or added, it is essential to call this method to save any such changes.- Specified by:
savein classPropertyMgr
-
set
Description copied from class:PropertyMgrSets the property associated with the specified key.- Specified by:
setin classPropertyMgr- Parameters:
name- the property keybackup- the property value- Returns:
- the previous value of the specified key or null if it did not have one.
-