-
Notifications
You must be signed in to change notification settings - Fork 81
More flexible approach to activate Beans by conditions #869
Copy link
Copy link
Open
Description
Currently, there is a @Alternative annotation, but it also needs to be declared in XML configuration to activate a Bean at runtime.
Is it possible to design a @Conditional annotation and Condition interface like Spring to activate a CDI bean in source codes without XML declarations?
@ConditionalOnProperties
@ConditionalOnBean/ConditionalOnMissingBean
@ConditionalOnClass/CondtionalOnMissingClass
@ConditionalOnModule/CondtioinalOnMissingModule(java module)
...Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels