add logging statement.

This commit is contained in:
markpollack
2008-08-14 21:15:37 +00:00
parent 0c68ebef38
commit 9660f57d16

View File

@@ -37,7 +37,13 @@ namespace Spring.Remoting
/// <author>Mark Pollack</author>
/// <author>Bruno Baia</author>
public class CaoFactoryObject : IFactoryObject, IInitializingObject
{
{
#region Logging
private static readonly Common.Logging.ILog LOG = Common.Logging.LogManager.GetLogger(typeof(CaoFactoryObject));
#endregion
#region Fields
private string remoteTargetName;
@@ -132,8 +138,13 @@ namespace Spring.Remoting
/// </summary>
/// <returns>the CAO proxy</returns>
public object GetObject()
{
ICaoRemoteFactory remoteFactory = (ICaoRemoteFactory) Activator.GetObject(typeof(ICaoRemoteFactory), serviceUrl.TrimEnd('/') + '/' + remoteTargetName);
{
string url = serviceUrl.TrimEnd('/') + '/' + remoteTargetName;
if (LOG.IsDebugEnabled)
{
LOG.Debug("Accessing CAO object of type ICaoRemoteFactory object at url = [" + url + "]");
}
ICaoRemoteFactory remoteFactory = (ICaoRemoteFactory) Activator.GetObject(typeof(ICaoRemoteFactory), url);
if (constructorArguments != null)
{