projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Expose the local Sones.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
core
/
Core.java
diff --git
a/src/main/java/net/pterodactylus/sone/core/Core.java
b/src/main/java/net/pterodactylus/sone/core/Core.java
index
f56c1ce
..
3399e9c
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/core/Core.java
+++ b/
src/main/java/net/pterodactylus/sone/core/Core.java
@@
-87,6
+87,15
@@
public class Core extends AbstractService {
return this;
}
return this;
}
+ /**
+ * Returns the local Sones.
+ *
+ * @return The local Sones
+ */
+ public Set<Sone> localSones() {
+ return localSones;
+ }
+
//
// ACTIONS
//
//
// ACTIONS
//
@@
-114,7
+123,10
@@
public class Core extends AbstractService {
logger.entering(Core.class.getName(), "loadConfiguration()");
/* get names of all local Sones. */
logger.entering(Core.class.getName(), "loadConfiguration()");
/* get names of all local Sones. */
- String allSoneNamesString = configuration.getStringValue("Sone/Names").getValue("");
+ String allSoneNamesString = configuration.getStringValue("Sone/Names").getValue(null);
+ if (allSoneNamesString == null) {
+ allSoneNamesString = "";
+ }
List<String> allSoneNames;
try {
allSoneNames = StringEscaper.parseLine(allSoneNamesString);
List<String> allSoneNames;
try {
allSoneNames = StringEscaper.parseLine(allSoneNamesString);