Weld also provides some simple APIs to bootstrap a CDI container.
You can utilize Weld APIs to modify beans in the CDI container lifecycle.
In the above codes, it vetoes Greeter bean in processAnnotatedType phase, the later bean select operation will cause an exception UnsatisfiedResolutionException thrown.
Grab the source codes from my GitHub account, and have a try.