org.codehaus.groovy.grails.commons.spring
Class TypeSpecifyableTransactionProxyFactoryBean

java.lang.Object
  extended by org.springframework.aop.framework.ProxyConfig
      extended by org.springframework.aop.framework.AbstractSingletonProxyFactoryBean
          extended by org.springframework.transaction.interceptor.TransactionProxyFactoryBean
              extended by org.codehaus.groovy.grails.commons.spring.TypeSpecifyableTransactionProxyFactoryBean
All Implemented Interfaces:
java.io.Serializable, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean<java.lang.Object>, org.springframework.beans.factory.InitializingBean

public class TypeSpecifyableTransactionProxyFactoryBean
extends org.springframework.transaction.interceptor.TransactionProxyFactoryBean
implements org.springframework.beans.factory.FactoryBean<java.lang.Object>

Allows the type of the underlying object to be specified explicitly. This is used when creating scoped proxies of transactional proxies of services. The scoped proxy needs to know that type of the object before the transactional proxy factory has instantiated the underlying service and is able to determine it's class. This class allows the type to be explicitly specified. Used by org.codehaus.groovy.grails.plugins.services.ServicesGrailsPlugin.

See Also:
Serialized Form

Constructor Summary
TypeSpecifyableTransactionProxyFactoryBean(java.lang.Class<?> type)
           
 
Method Summary
 java.lang.Class<?> getObjectType()
           
 
Methods inherited from class org.springframework.transaction.interceptor.TransactionProxyFactoryBean
createMainInterceptor, setBeanFactory, setPointcut, setTransactionAttributes, setTransactionAttributeSource, setTransactionManager
 
Methods inherited from class org.springframework.aop.framework.AbstractSingletonProxyFactoryBean
afterPropertiesSet, createTargetSource, getObject, isSingleton, setAdvisorAdapterRegistry, setBeanClassLoader, setPostInterceptors, setPreInterceptors, setProxyClassLoader, setProxyInterfaces, setTarget
 
Methods inherited from class org.springframework.aop.framework.ProxyConfig
copyFrom, isExposeProxy, isFrozen, isOpaque, isOptimize, isProxyTargetClass, setExposeProxy, setFrozen, setOpaque, setOptimize, setProxyTargetClass, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.FactoryBean
getObject, isSingleton
 

Constructor Detail

TypeSpecifyableTransactionProxyFactoryBean

public TypeSpecifyableTransactionProxyFactoryBean(java.lang.Class<?> type)
Method Detail

getObjectType

public java.lang.Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<java.lang.Object>
Overrides:
getObjectType in class org.springframework.aop.framework.AbstractSingletonProxyFactoryBean