◆ getClients()
| Map<String, String> org.turro.alliance.context.AllianceContext.getClients |
( |
| ) |
|
◆ getServer()
| String org.turro.alliance.context.AllianceContext.getServer |
( |
| ) |
|
◆ loadFrom()
| static AllianceContext org.turro.alliance.context.AllianceContext.loadFrom |
( |
Path |
path | ) |
|
|
static |
Definition at line 69 of file AllianceContext.java.
70 Path real = Path.of(ElephantContext.getRealPath(ALLIANCE_CONTEXT));
71 try(Reader reader =
new FileReader(real.toFile())) {
72 return JsonConfiguration.read(reader,AllianceContext.class);
73 }
catch (IOException ex) {
74 Logger.getLogger(AllianceContext.class.getName()).log(Level.SEVERE,
null, ex);
◆ saveTo()
| static void org.turro.alliance.context.AllianceContext.saveTo |
( |
Path |
path, |
|
|
AllianceContext |
context |
|
) |
| |
|
static |
Definition at line 79 of file AllianceContext.java.
80 Path real = Path.of(ElephantContext.getRealPath(ALLIANCE_CONTEXT));
81 try(Writer writer =
new FileWriter(real.toFile())) {
82 context.prepareSaving();
83 JsonConfiguration.write(writer, context);
84 }
catch (IOException ex) {
85 Logger.getLogger(AllianceContext.class.getName()).log(Level.SEVERE,
null, ex);
◆ setClients()
| void org.turro.alliance.context.AllianceContext.setClients |
( |
Map< String, String > |
clients | ) |
|
◆ setServer()
| void org.turro.alliance.context.AllianceContext.setServer |
( |
String |
server | ) |
|
The documentation for this class was generated from the following file: