TS plugin progress
This commit is contained in:
parent
828bde9797
commit
ed1254bfd1
|
@ -46,7 +46,11 @@ public class PersistentConfiguration {
|
||||||
@SuppressWarnings("unchecked")
|
@SuppressWarnings("unchecked")
|
||||||
public void load() {
|
public void load() {
|
||||||
try {
|
try {
|
||||||
XMLDecoder e = new XMLDecoder(new BufferedInputStream(new FileInputStream(CONFIG_FILE_NAME)));
|
BufferedInputStream inputStream = new BufferedInputStream(new FileInputStream(CONFIG_FILE_NAME));
|
||||||
|
/**
|
||||||
|
* interesting things are happening while this is executed under TS as a plugin so we need non-default CL parameter
|
||||||
|
*/
|
||||||
|
XMLDecoder e = new XMLDecoder(inputStream, null, null, PersistentConfiguration.class.getClassLoader());
|
||||||
config = (Map<String, Object>) e.readObject();
|
config = (Map<String, Object>) e.readObject();
|
||||||
e.close();
|
e.close();
|
||||||
System.out.println("Console configuration from " + CONFIG_FILE_NAME);
|
System.out.println("Console configuration from " + CONFIG_FILE_NAME);
|
||||||
|
|
Loading…
Reference in New Issue