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

Conditional @InstantiatedBy #510

Open
obigard opened this issue Jun 1, 2015 · 4 comments
Open

Conditional @InstantiatedBy #510

obigard opened this issue Jun 1, 2015 · 4 comments

Comments

@obigard
Copy link

obigard commented Jun 1, 2015

Using the new "@InstantiatedBy" annotation with a conditional constraint could be useful. The constraint could depend on the value of a dedicated configuration property.
Something like:
@InstantiatedBy(value = "xxx", filterKey = "key", filterValue = "value")

@cescoffier
Copy link
Member

Hi,

What about using LDAP filter instead of specific key / value:

@InstantiatedBy(value = "xxx", filter="(key=value)")

It would add more flexibility and expressiveness.

@obigard
Copy link
Author

obigard commented Jun 2, 2015

Perfect!
Is it already available?

@cescoffier
Copy link
Member

Nope :-(

Will have a look.

@obigard
Copy link
Author

obigard commented Jun 2, 2015

Thank you

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