How else would a programmatic bean be activated as an alternative back in Weld 2.x?
AFAIK there is no way to globally enable a custom bean in Weld 2.x. I get some java.lang.IllegalArgumentException: No configured value for 'org.apache.geronimo.config.test.internal.somekey' for ProviderTest. But even if I use -Dorg.apache.geronimo.config.test.internal.somekey=foo and select the alternative locally the custom bean is ignored. It might be that this is the first time anyone is trying to "override" a buil-in bean I'm going to dig deeper. |