add logging statement.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user