Overview
Other MyFaces Extensions
- ExtVal
- Ext-Script
- [Orchestra]
- [Portlet Bridge]
Community
Development
Sponsorship
Your browser does not support iframes
...
This annotation allows to activate beans based on expressions. Out-of-the-box simple conditions are supported. The values will be resolved from the environment via the default resolvers (see out-of-the-box environment-config options) or via a custom resolver ConfiguredValueResolver
which allows to use any type of configuration-format. An easy way to configure it permanently is e.g. myfaces-extcdi.properties or for more dynamic use-cases, it's possible to use system-properties.
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
@ExpressionActivated("db==dev-db") public class TestDataCreator { //... } or @ExpressionActivated("db!=prod-db;db==*") public class TestDataCreator { //... } |
...