Package org.hotrod.runtime.spring
Class SpringBeanObjectFactory
- java.lang.Object
-
- org.hotrod.runtime.spring.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
-
-
Constructor Summary
Constructors Constructor Description SpringBeanObjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tcreate(java.lang.Class<T> type)<T> Tcreate(java.lang.Class<T> type, java.util.List<java.lang.Class<?>> constructorArgTypes, java.util.List<java.lang.Object> constructorArgs)<T> booleanisCollection(java.lang.Class<T> type)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetProperties(java.util.Properties properties)
-
-
-
Method Detail
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
create
public <T> T create(java.lang.Class<T> type)
- Specified by:
createin interfaceorg.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:
createin interfaceorg.apache.ibatis.reflection.factory.ObjectFactory
-
isCollection
public <T> boolean isCollection(java.lang.Class<T> type)
- Specified by:
isCollectionin interfaceorg.apache.ibatis.reflection.factory.ObjectFactory
-
setProperties
public void setProperties(java.util.Properties properties)
- Specified by:
setPropertiesin interfaceorg.apache.ibatis.reflection.factory.ObjectFactory
-
-