public class BeanManagerAdapter
extends Object
Adapter for CDI BeanManager which extends default BeanManger functionality
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH, Dresden - 08.11.2020
-
Constructor Summary
Constructors
-
Method Summary
static final void
Adds the given bean classes as runtime beans to the CDI instance
static final void
Removes the given bean classes from the CDI instance
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
BeanManagerAdapter
public BeanManagerAdapter()
-
Method Details
-
addBeans
public static final void addBeans(Set<Class<?>> beanClasses)
Adds the given bean classes as runtime beans to the CDI instance
- Parameters:
beanClasses - Set of bean classes to register in CDI instance
-
removeBeans
public static final void removeBeans(Set<Class<?>> beanClasses)
Removes the given bean classes from the CDI instance
- Parameters:
beanClasses - Set of bean classes to unregister from CDI instance