delegatecallimpl.cs

来自「工作流的基本资料(文档资料」· CS 代码 · 共 54 行

CS
54
字号
using System;
using log4net;
using NetBpm.Workflow.Delegation;

namespace NetBpm.Workflow.Log.Impl
{
	public class DelegateCallImpl : LogDetailImpl, IDelegateCall
	{
		[NonSerialized()] private IDelegation _delegation = null;
		private String _interfaceClassName = null;
		private static readonly log4net.ILog log = LogManager.GetLogger(typeof (DelegateCallImpl));

		public String InterfaceClassName
		{
			get { return this._interfaceClassName; }
			set { this._interfaceClassName = value; }
		}

		public IDelegation Delegation
		{
			get { return this._delegation; }
			set { this._delegation = value; }
		}

		public DelegateCallImpl()
		{
		}

		public DelegateCallImpl(IDelegation delegation, Type interfaceClass)
		{
			this._delegation = delegation;
			this._interfaceClassName = interfaceClass.FullName;
			if (this._interfaceClassName.StartsWith("interface "))
			{
				this._interfaceClassName = this._interfaceClassName.Substring(10);
			}
		}

		public Type GetInterface()
		{
			Type clazz = null;
			//@portme
/*			try
			{
				clazz = typeof(DelegateCallImpl).getClassLoader().loadClass(interfaceClassName);
			}
			catch (System.Exception e)
			{
				log.Error("", e);
			}*/
			return clazz;
		}
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?