mirror of https://github.com/zlatinb/muwire
log event types, fix script execution
parent
e2acf7fddc
commit
ca9bd76dba
|
@ -189,9 +189,9 @@ class Core {
|
||||||
}
|
}
|
||||||
|
|
||||||
def binding = new Binding()
|
def binding = new Binding()
|
||||||
binding.setProperty("eventBus", eventBus)
|
|
||||||
// TOOD: other bindings?
|
|
||||||
def shell = new GroovyShell(binding)
|
def shell = new GroovyShell(binding)
|
||||||
|
binding.setProperty('eventBus', eventBus)
|
||||||
|
// TOOD: other bindings?
|
||||||
def script = shell.parse(f)
|
def script = shell.parse(f)
|
||||||
script.run()
|
script.run()
|
||||||
}
|
}
|
||||||
|
|
|
@ -23,7 +23,7 @@ class EventBus {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void publishInternal(Event e) {
|
private void publishInternal(Event e) {
|
||||||
log.fine "publishing event $e"
|
log.fine "publishing event $e of type ${e.getClass().getSimpleName()}"
|
||||||
def currentHandlers
|
def currentHandlers
|
||||||
final def clazz = e.getClass()
|
final def clazz = e.getClass()
|
||||||
synchronized(this) {
|
synchronized(this) {
|
||||||
|
|
Loading…
Reference in New Issue