Skip to content
New issue

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

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

Already on GitHub? # to your account

Application Properties in spring plugin #36

Open
satyakatta opened this issue Aug 16, 2019 · 4 comments
Open

Application Properties in spring plugin #36

satyakatta opened this issue Aug 16, 2019 · 4 comments

Comments

@satyakatta
Copy link

I was able to get the pf4j-spring configured with Spring boot and the plugins are working fine.

I am trying to get the properties configured in application.properties into one of the plugins and the properties are not getting resolved.

Is this possible? Or is there a way a do it?

Thx.

@decebals
Copy link
Member

decebals commented Sep 23, 2019

Try to take a look to issues section of pf4j. You will find a lot of nice information and interesting approach that are not present in documentation (yet).
To inject properties to extensions see pf4j/pf4j#308 (it's only as information, just in case that you will need it in the future).
For your particular case, I think that you need the approach described in pf4j/pf4j#187 (see in the footer other issues that did reference to this issue).
PF4J is very flexible (customizable) and powerful but unfortunately the documentation is not the best.

@decebals
Copy link
Member

@satyakatta
Did you find a solution?

@satyakatta
Copy link
Author

satyakatta commented Dec 17, 2019 via email

@decebals
Copy link
Member

@satyakatta
Can you share with us some (pseudo)code or/and to add more details?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants