Fix TypeNameAutoProxyCreator to use <list/> element for the TypeNames property [SPRNET-1184]

This commit is contained in:
bbaia
2010-04-08 09:45:26 +00:00
parent 17622da552
commit 4dc026d2e6
2 changed files with 732 additions and 725 deletions

View File

@@ -41,7 +41,14 @@ namespace Spring.Aop.Framework.AutoProxy
///</summary>
public string[] TypeNames
{
get { return _typeNameFilter.TypeNamePatterns; }
get
{
if (_typeNameFilter != null)
{
return _typeNameFilter.TypeNamePatterns;
}
return null;
}
set
{
AssertUtils.ArgumentNotNull(value, "TypeNames");
@@ -55,8 +62,8 @@ namespace Spring.Aop.Framework.AutoProxy
/// <remarks>
/// Override this method to allow or reject proxying for the given object.
/// </remarks>
/// <param name="targetType">the object's type</param>
/// <param name="targetName">the name of the object</param>
/// <param name="targetType">the object's type</param>
/// <param name="targetName">the name of the object</param>
/// <seealso cref="AbstractAutoProxyCreator.ShouldSkip"/>
/// <returns>whether the given object shall be proxied.</returns>
protected override bool IsEligibleForProxying(Type targetType, string targetName)

File diff suppressed because it is too large Load Diff