core.osgi.events¶
This module provides an OSGi EventAdmin event monitor and rule trigger. This can trigger off any OSGi event. Rule manager events are filtered to avoid circular loops in the rule execution.
class ExampleRule(SimpleRule):
def __init__(self):
self.triggers = [ core.osgi.events.OsgiEventTrigger() ]
def execute(self, module, inputs):
event = inputs['event']
# do something with event
-
core.osgi.events.
hashtable
(*key_values)¶ - Parameters
key_values – 2-tuples of (key, value)
- Returns
initialized Hashtable
-
class
core.osgi.events.
OsgiEventTrigger
(filter=None)¶ Bases:
core_mock.jsr223.scope.Trigger
Filter is a predicate taking an event argument and returning True (keep) or False (drop)