- java.lang.Object
-
- org.datanucleus.CDIHandler
-
public class CDIHandler extends Object
Handles the integration of "javax.enterprise.inject" CDI API. Note that this is the only class referring to CDI classes so that it is usable in environments without CDI present. TODO Make this thread-safe
-
-
Constructor Summary
Constructors Constructor Description CDIHandler(Object beanMgr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
<T> T
createObjectWithInjectedDependencies(Class<T> cls)
Method to instantiate an object of the specified type with injected dependencies.
-
-
-
Constructor Detail
-
CDIHandler
public CDIHandler(Object beanMgr)
-
-
Method Detail
-
createObjectWithInjectedDependencies
public <T> T createObjectWithInjectedDependencies(Class<T> cls)
Method to instantiate an object of the specified type with injected dependencies.- Type Parameters:
T
- Type of the object- Parameters:
cls
- The type to instantiate- Returns:
- The instance
-
close
public void close()
-
-