Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PersistenceExceptionTranslationPostProcessor.PostProcessAfterInitialization Method

Add PersistenceExceptionTranslationAdvice to candidate object if it is a match. Create AOP proxy if necessary or add advice to existing advice chain.

[Visual Basic]
Public NotOverridable Sub PostProcessAfterInitialization( _
   ByVal instance As Object, _
   ByVal objectName As String _
) _
    Implements IObjectPostProcessor.PostProcessAfterInitialization
[C#]
public object PostProcessAfterInitialization(
   object instance,
   string objectName
);

Parameters

instance
The new object instance.
objectName
The name of the object.

Return Value

The object instance to use, wrapped with either the original or a wrapped one.

Implements

IObjectPostProcessor.PostProcessAfterInitialization

Exceptions

Exception Type Condition
ObjectsException In case of errors.

See Also

PersistenceExceptionTranslationPostProcessor Class | Spring.Dao.Attributes Namespace