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
Afficher le fichier Open project: spring-projects/spring-net

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
createTargetSource ( object target ) : ITargetSource

Set the target or Spring.Aop.ITargetSource.

Method Details

AfterPropertiesSet() public méthode

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

GetObject() public méthode

Returns the object wrapped by this proxy factory.
public GetObject ( ) : object
Résultat object

TransactionProxyFactoryObject() public méthode

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

createTargetSource() protected méthode

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 . ///
Résultat ITargetSource