C# Class Spring.Transaction.Interceptor.TransactionProxyFactoryObject

Proxy factory object for simplified declarative transaction handling.

Alternative to the standard AOP Spring.Aop.Framework.ProxyFactoryObject with a Spring.Transaction.Interceptor.TransactionInterceptor.

This class is intended to cover the typical case of declarative transaction demarcation: namely, wrapping a (singleton) target object with a transactional proxy, proxying all the interfaces that the target implements.

Internally, a Spring.Transaction.Interceptor.TransactionInterceptor instance is used, but the user of this class does not have to care. Optionally, an Spring.Aop.IPointcut can be specified to cause conditional invocation of the underlying Spring.Transaction.Interceptor.TransactionInterceptor.

The Spring.Transaction.Interceptor.TransactionProxyFactoryObject.PreInterceptors and Spring.Transaction.Interceptor.TransactionProxyFactoryObject.PostInterceptors properties can be set to add additional interceptors to the mix.

Inheritance: Spring.Aop.Framework.ProxyConfig, IFactoryObject, IInitializingObject
ファイルを表示 Open project: spring-projects/spring-net

Public Methods

Method Description
AfterPropertiesSet ( ) : void

Method run after all the properties have been set for this object. Responsible for actual proxy creation.

GetObject ( ) : object

Returns the object wrapped by this proxy factory.

TransactionProxyFactoryObject ( ) : System

Creates a new instance of the Spring.Transaction.Interceptor.TransactionProxyFactoryObject class.

Protected Methods

Method Description
createTargetSource ( object target ) : ITargetSource

Set the target or Spring.Aop.ITargetSource.

Method Details

AfterPropertiesSet() public method

Method run after all the properties have been set for this object. Responsible for actual proxy creation.
public AfterPropertiesSet ( ) : void
return void

GetObject() public method

Returns the object wrapped by this proxy factory.
public GetObject ( ) : object
return object

TransactionProxyFactoryObject() public method

Creates a new instance of the Spring.Transaction.Interceptor.TransactionProxyFactoryObject class.
public TransactionProxyFactoryObject ( ) : System
return System

createTargetSource() protected method

Set the target or Spring.Aop.ITargetSource.
protected createTargetSource ( object target ) : ITargetSource
target object /// The target. If this is an implementation of the /// interface, it is used as our ; otherwise it is /// wrapped in a . ///
return ITargetSource