Class MyBatisBean

java.lang.Object
org.mybatis.cdi.MyBatisBean
All Implemented Interfaces:
jakarta.enterprise.context.spi.Contextual<Object>, jakarta.enterprise.inject.spi.Bean<Object>, jakarta.enterprise.inject.spi.BeanAttributes<Object>, jakarta.enterprise.inject.spi.PassivationCapable, Serializable

public class MyBatisBean extends Object implements jakarta.enterprise.inject.spi.Bean<Object>, Serializable, jakarta.enterprise.inject.spi.PassivationCapable
Internal CDI metadata for a mapper bean.
Author:
Frank D. Martinez [mnesarco]
See Also:
  • Field Details

    • type

      protected final Class<Type> type
    • qualifiers

      protected final Set<Annotation> qualifiers
    • sqlSessionFactoryName

      protected final String sqlSessionFactoryName
    • id

      protected final String id
  • Constructor Details

    • MyBatisBean

      public MyBatisBean(String id, Class<Type> type, Set<Annotation> qualifiers, String sqlSessionFactoryName)
      Instantiates a new my batis bean.
      Parameters:
      id - the id
      type - the type
      qualifiers - the qualifiers
      sqlSessionFactoryName - the sql session factory name
  • Method Details

    • getTypes

      public Set<Type> getTypes()
      Specified by:
      getTypes in interface jakarta.enterprise.inject.spi.BeanAttributes<Object>
    • getQualifiers

      public Set<Annotation> getQualifiers()
      Specified by:
      getQualifiers in interface jakarta.enterprise.inject.spi.BeanAttributes<Object>
    • getScope

      public Class<jakarta.enterprise.context.Dependent> getScope()
      Specified by:
      getScope in interface jakarta.enterprise.inject.spi.BeanAttributes<Object>
    • getName

      public String getName()
      Specified by:
      getName in interface jakarta.enterprise.inject.spi.BeanAttributes<Object>
    • getStereotypes

      public Set<Class<? extends Annotation>> getStereotypes()
      Specified by:
      getStereotypes in interface jakarta.enterprise.inject.spi.BeanAttributes<Object>
    • getBeanClass

      public Class<Type> getBeanClass()
      Specified by:
      getBeanClass in interface jakarta.enterprise.inject.spi.Bean<Object>
    • isAlternative

      public boolean isAlternative()
      Specified by:
      isAlternative in interface jakarta.enterprise.inject.spi.BeanAttributes<Object>
    • getInjectionPoints

      public Set<jakarta.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
      Specified by:
      getInjectionPoints in interface jakarta.enterprise.inject.spi.Bean<Object>
    • create

      public Object create(jakarta.enterprise.context.spi.CreationalContext<Object> creationalContext)
      Specified by:
      create in interface jakarta.enterprise.context.spi.Contextual<Object>
    • destroy

      public void destroy(Object instance, jakarta.enterprise.context.spi.CreationalContext<Object> creationalContext)
      Specified by:
      destroy in interface jakarta.enterprise.context.spi.Contextual<Object>
    • getId

      public String getId()
      Specified by:
      getId in interface jakarta.enterprise.inject.spi.PassivationCapable