|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.jw.cloud42.core.domain.Settings
public class Settings
Holds global application settings. Uses singleton pattern to keep instance state during application lifetime and to avoid fetching settings from database on each call/instantiation.
| Constructor Summary | |
|---|---|
Settings()
|
|
| Method Summary | |
|---|---|
java.lang.String |
getEndpointAddress()
|
int |
getId()
|
static Settings |
getInstance()
Singleton method, loads settings from database if called for the first time. |
void |
save()
Saves current settings in database. |
void |
setEndpointAddress(java.lang.String endpointAddress)
|
void |
setId(int id)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Settings()
| Method Detail |
|---|
public static Settings getInstance()
public void save()
public java.lang.String getEndpointAddress()
public void setEndpointAddress(java.lang.String endpointAddress)
public int getId()
public void setId(int id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||