Package org.mybatis.cdi
Class CDIUtils
java.lang.Object
org.mybatis.cdi.CDIUtils
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.apache.ibatis.session.SqlSessionFactory
findSqlSessionFactory
(String name, Set<Annotation> qualifiers, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext) Find sql session factory.static <T> SqlSessionManagerRegistry
getRegistry
(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext) Gets the registry.
-
Method Details
-
getRegistry
public static <T> SqlSessionManagerRegistry getRegistry(jakarta.enterprise.context.spi.CreationalContext<T> creationalContext) Gets the registry.- Parameters:
creationalContext
- the creational context- Returns:
- the registry
-
findSqlSessionFactory
public static <T> org.apache.ibatis.session.SqlSessionFactory findSqlSessionFactory(String name, Set<Annotation> qualifiers, jakarta.enterprise.context.spi.CreationalContext<T> creationalContext) Find sql session factory.- Parameters:
name
- the namequalifiers
- the qualifierscreationalContext
- the creational context- Returns:
- the sql session factory
-