Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Services" support #36

Open
ylt opened this issue Jun 24, 2015 · 0 comments
Open

"Services" support #36

ylt opened this issue Jun 24, 2015 · 0 comments

Comments

@ylt
Copy link
Member

ylt commented Jun 24, 2015

Allow plugins to expose a standardised service interface. This will allow similar features between many plugins to be handled the same.

For now will be returning a plain list, however a service repository class could be nice, but not sure of a tidy way of implementing this. This would allow doing i.e. manager.getServiceRepo("chat").sendChat("qwerty") to send a message to every chat service.
(maybe worthy of its own issue)

Plugins will list the services that they expose in the meta.json. Each service entry will specify a class within to use.

PluginManager: getService(serviceName), returns a list of services

meta.json ->

{
    "exposes": {
        "plug": null,
        "chat": "chat",
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants