| java.lang.Object org.compass.spring.LocalCompassSessionBean
LocalCompassSessionBean | public class LocalCompassSessionBean implements FactoryBean,InitializingBean,ApplicationContextAware(Code) | | A factory for
org.compass.core.CompassSession that creates a special proxied
session which can be used within code that runs within an external transaction (Spring, JTA).
The session can be used without using Compass transaction management code or even without
closing the session.
It is optional to set the
org.compass.core.Compass instance that will be used to create
the transactional Compass session. If there is a single Compass instance defined within the spring
application context, it will be automatically used.
author: kimchy |
afterPropertiesSet | public void afterPropertiesSet() throws Exception(Code) | | If no Compass instance was set, will try to use Spring application context
to get a Compass instance.
throws: Exception - |
isSingleton | public boolean isSingleton()(Code) | | |
setApplicationContext | public void setApplicationContext(ApplicationContext applicationContext) throws BeansException(Code) | | |
setCompass | public void setCompass(Compass compass)(Code) | | Sets the Compass instance used to open session. It is optional
to set the Compass instance, since if there is a single instance
defined within the application context, it will be automatically used.
Parameters: compass - The Compass instance to use for openning the session |
|
|