public virtual IActivationDepth ActivationDepthFor(ClassMetadata classMetadata, ActivationMode
			 mode)
		{
			Record(new MethodCall("activationDepthFor", new object[] { classMetadata, mode })
				);
			return _delegate.ActivationDepthFor(classMetadata, mode);
		}
Пример #2
0
 public virtual IActivationDepth ActivationDepth(int depth, ActivationMode mode)
 {
     if (int.MaxValue == depth)
     {
         return(new FullActivationDepth(mode));
     }
     return(new FixedActivationDepth(depth, mode));
 }
		public virtual IActivationDepth ActivationDepth(int depth, ActivationMode mode)
		{
			if (int.MaxValue == depth)
			{
				return new FullActivationDepth(mode);
			}
			return new FixedActivationDepth(depth, mode);
		}
		public virtual IActivationDepth ActivationDepthFor(ClassMetadata classMetadata, ActivationMode
			 mode)
		{
			if (mode.IsPrefetch())
			{
				return new LegacyActivationDepth(1, mode);
			}
			int globalLegacyActivationDepth = ConfigImpl(classMetadata).ActivationDepth();
			Config4Class config = classMetadata.ConfigOrAncestorConfig();
			int defaultDepth = null == config ? globalLegacyActivationDepth : config.AdjustActivationDepth
				(globalLegacyActivationDepth);
			return new LegacyActivationDepth(defaultDepth, mode);
		}
		public virtual IActivationDepth ActivationDepthFor(ClassMetadata classMetadata, ActivationMode
			 mode)
		{
			if (IsTAAware(classMetadata))
			{
				return new NonDescendingActivationDepth(mode);
			}
			if (mode.IsPrefetch())
			{
				return new FixedActivationDepth(1, mode);
			}
			return new DescendingActivationDepth(this, mode);
		}
Пример #6
0
 protected ActivationDepthImpl(ActivationMode mode)
 {
     _mode = mode;
 }
 public virtual IActivationDepth ActivationDepth(int depth, ActivationMode mode)
 {
     return(new LegacyActivationDepth(depth, mode));
 }
Пример #8
0
		public NonDescendingActivationDepth(ActivationMode mode) : base(mode)
		{
		}
 public LegacyActivationDepth(int depth, ActivationMode mode) : base(mode)
 {
     _depth = depth;
 }
Пример #10
0
 public DescendingActivationDepth(IActivationDepthProvider provider, ActivationMode
                                  mode) : base(mode)
 {
     _provider = provider;
 }
Пример #11
0
 private bool ActivatingActiveObject(ActivationMode mode, ObjectReference @ref)
 {
     return !mode.IsRefresh() && @ref.IsActive();
 }
Пример #12
0
		public FullActivationDepth(ActivationMode mode) : base(mode)
		{
		}
		public FixedActivationDepth(int depth, ActivationMode mode) : base(mode)
		{
			_depth = depth;
		}
		public virtual IActivationDepth ActivationDepth(int depth, ActivationMode mode)
		{
			Record(new MethodCall("activationDepth", new object[] { depth, mode }));
			return _delegate.ActivationDepth(depth, mode);
		}
Пример #15
0
		public DescendingActivationDepth(IActivationDepthProvider provider, ActivationMode
			 mode) : base(mode)
		{
			_provider = provider;
		}
Пример #16
0
 public virtual IActivationDepth ActivationDepthFor(ClassMetadata classMetadata, ActivationMode
                                                    mode)
 {
     if (IsTAAware(classMetadata))
     {
         return(new NonDescendingActivationDepth(mode));
     }
     if (mode.IsPrefetch())
     {
         return(new FixedActivationDepth(1, mode));
     }
     return(new DescendingActivationDepth(this, mode));
 }
		private void AssertFullActivationDepthForMaxValue(ActivationMode mode)
		{
			Assert.IsInstanceOf(typeof(FullActivationDepth), Provider().ActivationDepth(int.MaxValue
				, mode));
		}
Пример #18
0
 public NonDescendingActivationDepth(ActivationMode mode) : base(mode)
 {
 }
Пример #19
0
		public virtual IActivationDepth ActivationDepth(int depth, ActivationMode mode)
		{
			return new LegacyActivationDepth(depth, mode);
		}
 public FixedActivationDepth(int depth, ActivationMode mode) : base(mode)
 {
     _depth = depth;
 }
Пример #21
0
 public LegacyActivationDepth(int depth, ActivationMode mode) : base(mode)
 {
     _depth = depth;
 }
        public virtual IActivationDepth ActivationDepthFor(ClassMetadata classMetadata, ActivationMode
                                                           mode)
        {
            if (mode.IsPrefetch())
            {
                return(new LegacyActivationDepth(1, mode));
            }
            int          globalLegacyActivationDepth = ConfigImpl(classMetadata).ActivationDepth();
            Config4Class config       = classMetadata.ConfigOrAncestorConfig();
            int          defaultDepth = null == config ? globalLegacyActivationDepth : config.AdjustActivationDepth
                                            (globalLegacyActivationDepth);

            return(new LegacyActivationDepth(defaultDepth, mode));
        }
Пример #23
0
 public FullActivationDepth(ActivationMode mode) : base(mode)
 {
 }
Пример #24
0
		protected ActivationDepthImpl(ActivationMode mode)
		{
			_mode = mode;
		}