PatternMatchUtils.IsObjectNameMatch Method
Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

PatternMatchUtils.IsObjectNameMatch Method

Convenience method that may be used by derived classes. Iterates over the list of objectNamePatterns to match objectName against.

[Visual Basic]
Public Shared Sub IsObjectNameMatch( _
   ByVal objType As Type, _
   ByVal objectName As String, _
   ByVal objectNamePatterns As IList, _
   ByVal isMatchPredicate As ObjectNameMatchPredicate, _
   ByVal factoryObjectPrefix As String _
public static bool IsObjectNameMatch(
   Type objType,
   string objectName,
   IList objectNamePatterns,
   ObjectNameMatchPredicate isMatchPredicate,
   string factoryObjectPrefix


the object's type. Must not be null.
the name of the object Must not be null.
the list of patterns, that objectName shall be matched against. Must not be null.
the PatternMatchUtils.ObjectNameMatchPredicate used for matching objectName against each pattern in objectNamePatterns. Must not be null.
the prefix to be used for dereferencing factory object names.

Return Value

If objectNamePatterns is null, will always return true, otherwise if objectName matches any of the patterns specified in objectNamePatterns.

See Also

PatternMatchUtils Class | Spring.Util Namespace