|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfc.util.PropertyMgr
fc.web.servlet.ServletPropertyMgr
public class 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.
| Constructor Summary | |
|---|---|
ServletPropertyMgr(javax.servlet.ServletContext context)
|
|
| Method Summary | |
|---|---|
String |
get(String name)
Returns the property associated with the specified key or null if the property was not found. |
void |
save()
Saves any properties that were set previously. |
String |
set(String name,
String backup)
Sets the property associated with the specified key. |
| Methods inherited from class fc.util.PropertyMgr |
|---|
get, getBoolean, getInt, getRequired, getRequiredBoolean, getRequiredInt, setUsage |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServletPropertyMgr(javax.servlet.ServletContext context)
throws IOException
context - the ServletContext
to load init parameters from.
IOException| Method Detail |
|---|
public String get(String name)
PropertyMgr
get in class PropertyMgrname - the property keypublic void save()
PropertyMgr
save in class PropertyMgr
public String set(String name,
String backup)
PropertyMgr
set in class PropertyMgrname - the property keybackup - the property value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||