public virtual IActivationDepth ActivationDepthFor(ClassMetadata classMetadata, ActivationMode
			 mode)
		{
			Record(new MethodCall("activationDepthFor", new object[] { classMetadata, mode })
				);
			return _delegate.ActivationDepthFor(classMetadata, mode);
		}
Beispiel #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);
		}
Beispiel #6
0
 protected ActivationDepthImpl(ActivationMode mode)
 {
     _mode = mode;
 }
 public virtual IActivationDepth ActivationDepth(int depth, ActivationMode mode)
 {
     return(new LegacyActivationDepth(depth, mode));
 }
		public NonDescendingActivationDepth(ActivationMode mode) : base(mode)
		{
		}
 public LegacyActivationDepth(int depth, ActivationMode mode) : base(mode)
 {
     _depth = depth;
 }
 public DescendingActivationDepth(IActivationDepthProvider provider, ActivationMode
                                  mode) : base(mode)
 {
     _provider = provider;
 }
Beispiel #11
0
 private bool ActivatingActiveObject(ActivationMode mode, ObjectReference @ref)
 {
     return !mode.IsRefresh() && @ref.IsActive();
 }
Beispiel #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);
		}
		public DescendingActivationDepth(IActivationDepthProvider provider, ActivationMode
			 mode) : base(mode)
		{
			_provider = provider;
		}
Beispiel #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));
		}
Beispiel #18
0
 public NonDescendingActivationDepth(ActivationMode mode) : base(mode)
 {
 }
		public virtual IActivationDepth ActivationDepth(int depth, ActivationMode mode)
		{
			return new LegacyActivationDepth(depth, mode);
		}
 public FixedActivationDepth(int depth, ActivationMode mode) : base(mode)
 {
     _depth = depth;
 }
Beispiel #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));
        }
Beispiel #23
0
 public FullActivationDepth(ActivationMode mode) : base(mode)
 {
 }
Beispiel #24
0
		protected ActivationDepthImpl(ActivationMode mode)
		{
			_mode = mode;
		}