コード例 #1
0
        public virtual void SetProxyFactoryFactory(string typeName)
        {
            System.Type pffc;
            try
            {
                pffc = ReflectHelper.ClassForName(typeName);
            }
            catch (Exception he)
            {
                throw new UnableToLoadProxyFactoryFactoryException(typeName, he);
            }

            if (typeof(IProxyFactoryFactory).IsAssignableFrom(pffc) == false)
            {
                var he = new HibernateByteCodeException(pffc.FullName + " does not implement " + typeof(IProxyFactoryFactory).FullName);
                throw he;
            }
            proxyFactoryFactory = pffc;
        }
コード例 #2
0
		public virtual void SetProxyFactoryFactory(string typeName)
		{
			System.Type pffc;
			try
			{
				pffc = ReflectHelper.ClassForName(typeName);
			}
			catch (Exception he)
			{
				throw new UnableToLoadProxyFactoryFactoryException(typeName, he);
			}

			if (typeof(IProxyFactoryFactory).IsAssignableFrom(pffc) == false)
			{
				var he = new HibernateByteCodeException(pffc.FullName + " does not implement " + typeof(IProxyFactoryFactory).FullName);
				throw he;
			}
			proxyFactoryFactory = pffc;
		}