org.springframework.orm.ibatis
Class SqlMapFactoryBean


public class SqlMapFactoryBean
implements FactoryBean, InitializingBean

FactoryBean that creates an iBATIS Database Layer SqlMap as singleton in the current bean factory, possibly for use with SqlMapTemplate.

Author:
Juergen Hoeller
Since: 28.11.2003
See Also: SqlMapTemplate.setSqlMap(SqlMap)

Method Summary
 voidafterPropertiesSet()
           
 ObjectgetObject()
           
 ClassgetObjectType()
           
 booleanisSingleton()
           
 voidsetConfigLocation(Resource configLocation)
          Set the location of the iBATIS SqlMap config file as class path resource.

Method Detail

afterPropertiesSet

public void afterPropertiesSet()
throws java.io.IOException

getObject

public Object getObject()

getObjectType

public Class getObjectType()

isSingleton

public boolean isSingleton()

setConfigLocation

public void setConfigLocation(Resource configLocation)
Set the location of the iBATIS SqlMap config file as class path resource. A typical value is "example/sql-map-config.xml", in the case of web applications normally to be found in WEB-INF/classes.

Association Links

to Class org.springframework.core.io.Resource