Annotation Interface AddBean
Add a bean.
This is intended for test sources where we do not want to add
beans.xml
as this would add
all test classes as beans.
The bean will be added by default with ApplicationScoped
.
The class will be instantiated using CDI and will be available for injection into test classes and other beans.
This annotation can be repeated.-
Required Element Summary
-
Optional Element Summary
-
Element Details
-
value
Class<?> valueClass of the bean.- Returns:
- the class of a bean
-
scope
Class<? extends Annotation> scope- Returns:
- scope of the bean
- Default:
jakarta.enterprise.context.ApplicationScoped.class
-