Details
-
New Feature
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
There is currently no way for a service to access its own Registry.
This would be useful sometimes, for example if you've got a listener that is invoked from a non-Hivemind thread:
public class MyService()
{
private Registry registry;
public MyService()
{ registry = getRegistry(); // <-- Need this OutsideHivemind.registerListener(this); }public void invokeListener()
{ registry.setupThread(); // Use some Hivemind services... registry.cleanupThread(); }}