WeldInitiator to add the specified beans during AfterBeanDiscovery notification.Dependent scope
has Any qualifier and Default is added automatically if no other qualifiers are set
has Object bean type
has no stereotypes
is not an alternative
Note that MockBean.Builder.creating(Object) or Builder#create(CreateFunction) must be always set.Weld instance has:
automatic discovery disabled
concurrent deployment disabled
Contextual.create(CreationalContext) will return the same instance.WeldInitiator to inject the given non-contextual instance once the container is started, i.e. during test execution.Bean implementation is useful for mocking.Bean with default values (see also MockBean.builder()).WeldInitiator.createWeld() method and the given bean classes are added.Weld instance.WeldInitiator.createWeld() method and all the classes from the test class package are added.IllegalStateException after shutdown.WeldInitiator implements Instance and therefore might be used to perform programmatic lookup of bean instances.WeldInitiator instance, e.g. to activate a context for a given normal scope.Copyright © 2017. All rights reserved.