Update of /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/Config
In directory sc8-pr-cvs8.sourceforge.net:/tmp/cvs-serv30886/Config
Modified Files:
ObjectDefinitionVisitor.cs
Log Message:
fixed final missing comments
Index: ObjectDefinitionVisitor.cs
===================================================================
RCS file: /cvsroot/springnet/Spring.Net/src/Spring/Spring.Core/Objects/Factory/Config/ObjectDefinitionVisitor.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** ObjectDefinitionVisitor.cs 21 Aug 2007 19:28:33 -0000 1.6
--- ObjectDefinitionVisitor.cs 28 Aug 2007 14:16:40 -0000 1.7
***************
*** 173,176 ****
--- 173,181 ----
}
+ /// <summary>
+ /// Resolves the given value taken from an object definition according to its type
+ /// </summary>
+ /// <param name="value">the value to resolve</param>
+ /// <returns>the resolved value</returns>
protected virtual object ResolveValue(object value)
{
***************
*** 228,231 ****
--- 233,239 ----
}
+ /// <summary>
+ /// Calls <see cref="ResolveValue"/> for list element.
+ /// </summary>
protected virtual void VisitList(IList listVal)
{
***************
*** 241,244 ****
--- 249,255 ----
}
+ /// <summary>
+ /// Calls <see cref="ResolveValue"/> for set element.
+ /// </summary>
protected virtual void VisitSet(ISet setVal)
{
***************
*** 256,259 ****
--- 267,273 ----
}
+ /// <summary>
+ /// Calls <see cref="ResolveValue"/> for dictionary's value element.
+ /// </summary>
protected virtual void VisitDictionary(IDictionary dictVal)
{
***************
*** 274,278 ****
}
! protected virtual object ResolveStringValue(string stringValue)
{
if (variableSource == null)
--- 288,301 ----
}
! /// <summary>
! /// Looks up the value of the given variable name in the configured <see cref="IVariableSource"/>.
! /// </summary>
! /// <param name="variableName">The name of the variable to be looked up</param>
! /// <returns>
! /// The value of this variable, as returned from the <see cref="IVariableSource"/> passed
! /// into the constructor <see cref="ObjectDefinitionVisitor(IVariableSource)"/>
! /// </returns>
! /// <exception cref="InvalidOperationException">If no <see cref="IVariableSource"/> has been configured.</exception>
! protected virtual object ResolveStringValue(string variableName)
{
if (variableSource == null)
***************
*** 281,285 ****
"of this object into the constructor or override the 'ResolveStringValue' method");
}
! return variableSource.ResolveVariable(stringValue);
}
--- 304,308 ----
"of this object into the constructor or override the 'ResolveStringValue' method");
}
! return variableSource.ResolveVariable(variableName);
}
|