Class SpringBeanObjectFactory

  • All Implemented Interfaces:
    org.apache.ibatis.reflection.factory.ObjectFactory, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class SpringBeanObjectFactory
    extends java.lang.Object
    implements org.apache.ibatis.reflection.factory.ObjectFactory, org.springframework.context.ApplicationContextAware
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      <T> T create​(java.lang.Class<T> type)  
      <T> T create​(java.lang.Class<T> type, java.util.List<java.lang.Class<?>> constructorArgTypes, java.util.List<java.lang.Object> constructorArgs)  
      <T> boolean isCollection​(java.lang.Class<T> type)  
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)  
      void setProperties​(java.util.Properties properties)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpringBeanObjectFactory

        public SpringBeanObjectFactory()
    • Method Detail

      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • create

        public <T> T create​(java.lang.Class<T> type)
        Specified by:
        create in interface org.apache.ibatis.reflection.factory.ObjectFactory
      • create

        public <T> T create​(java.lang.Class<T> type,
                            java.util.List<java.lang.Class<?>> constructorArgTypes,
                            java.util.List<java.lang.Object> constructorArgs)
        Specified by:
        create in interface org.apache.ibatis.reflection.factory.ObjectFactory
      • isCollection

        public <T> boolean isCollection​(java.lang.Class<T> type)
        Specified by:
        isCollection in interface org.apache.ibatis.reflection.factory.ObjectFactory
      • setProperties

        public void setProperties​(java.util.Properties properties)
        Specified by:
        setProperties in interface org.apache.ibatis.reflection.factory.ObjectFactory