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

[api/compiler] @Factory annotation parameters #267

Open
Gmugra opened this issue Dec 18, 2021 · 0 comments
Open

[api/compiler] @Factory annotation parameters #267

Gmugra opened this issue Dec 18, 2021 · 0 comments
Labels
enhancement New feature or request low priority

Comments

@Gmugra
Copy link
Owner

Gmugra commented Dec 18, 2021

Idea is to extend @Factory annotation with optional parameters which works like methods from ConfigFactoryBuilder:

@Factory(
    sources = { "classpath:my.properties", "system.properties" }, 
    loadStrategy = LoadStrategy.FIRST,
    autoReload = true,
    globalPrefix= "gp"
)
public interface MyFactory {
    MyConfig createMyConfig();
}
@Gmugra Gmugra added the enhancement New feature or request label Dec 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority
Projects
None yet
Development

No branches or pull requests

1 participant