log event types, fix script execution
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user