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

Plugins should have access to resources of other plugins #5

Closed
BenjaminDobler opened this issue Jan 19, 2017 · 6 comments
Closed

Plugins should have access to resources of other plugins #5

BenjaminDobler opened this issue Jan 19, 2017 · 6 comments

Comments

@BenjaminDobler
Copy link
Collaborator

I`m thinking of situations where you have a resource that contains elements which contain references to elements of other resources. How would a plugin right now get information about these resources (e.g. maybe to expand them or update them).
Maybe each plugin could get registered in some kind of plugin registry and this registry is then exposed to each plugin?

@wzr1337
Copy link
Owner

wzr1337 commented Mar 12, 2017

good idea.. the plugin loader might expose these information

for now I'd recommend too just "import" the needed parts

@wzr1337
Copy link
Owner

wzr1337 commented Mar 19, 2017

Within a service, you can now lookup resources by using getResource(name:string).

It is part of a refactoring service class

@codeundkakao
Copy link
Contributor

codeundkakao commented Apr 12, 2017

What is the desired feature scope for this?

Given that resources within a service do actually know and now can also lookup each other this already provides the ability to implement a plugin logic that for instance let's a resource modify certain other resources within the same service based on it's own current data set.

Benjamin's initial thought was going further by suggesting a mechanism to provide each service with information about all available services and thus enable an interaction between services.

Maybe it should be defined in which extend such functionality should be implemented.

@wzr1337
Copy link
Owner

wzr1337 commented Apr 13, 2017 via email

@codeundkakao
Copy link
Contributor

Thinking about this further, this kind of relates to or could be the basis of #30 as well. Not sure about a smart solution though. I gotta dig a little deeper and understand viwi in it's current state a little better still.

@wzr1337
Copy link
Owner

wzr1337 commented Apr 30, 2017 via email

@wzr1337 wzr1337 closed this as completed Jun 26, 2017
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

3 participants