From 198cad7720a64ab5c1f880b37b59adb5c7c2a2fc Mon Sep 17 00:00:00 2001 From: Bartosz Sypytkowski Date: Fri, 15 Sep 2017 20:10:55 +0200 Subject: [PATCH] Obsoleted actor producer pipeline extensions --- .../Akka.API.Tests/CoreAPISpec.ApproveCore.approved.txt | 6 ++++++ src/core/Akka/Actor/ActorProducerPipeline.cs | 5 +++++ src/core/Akka/Actor/ExtendedActorSystem.cs | 3 +++ 3 files changed, 14 insertions(+) diff --git a/src/core/Akka.API.Tests/CoreAPISpec.ApproveCore.approved.txt b/src/core/Akka.API.Tests/CoreAPISpec.ApproveCore.approved.txt index 756057ecd58..b05559e512e 100644 --- a/src/core/Akka.API.Tests/CoreAPISpec.ApproveCore.approved.txt +++ b/src/core/Akka.API.Tests/CoreAPISpec.ApproveCore.approved.txt @@ -202,6 +202,7 @@ namespace Akka.Actor public override int GetHashCode() { } } } + [System.ObsoleteAttribute("Actor producer pipeline API will be removed in v1.5.")] public class ActorProducerPipeline : System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { public ActorProducerPipeline(System.Lazy log, System.Collections.Generic.IEnumerable plugins) { } @@ -210,6 +211,7 @@ namespace Akka.Actor public void BeforeActorIncarnated(Akka.Actor.ActorBase actor, Akka.Actor.IActorContext context) { } public System.Collections.Generic.IEnumerator GetEnumerator() { } } + [System.ObsoleteAttribute("Actor producer pipeline API will be removed in v1.5.")] public class ActorProducerPipelineResolver { public ActorProducerPipelineResolver(System.Func logBuilder) { } @@ -219,6 +221,7 @@ namespace Akka.Actor public bool Register(Akka.Actor.IActorProducerPlugin plugin) { } public bool Unregister(Akka.Actor.IActorProducerPlugin plugin) { } } + [System.ObsoleteAttribute("Actor producer pipeline API will be removed in v1.5.")] public abstract class ActorProducerPluginBase : Akka.Actor.IActorProducerPlugin { protected ActorProducerPluginBase() { } @@ -226,6 +229,7 @@ namespace Akka.Actor public virtual void BeforeIncarnated(Akka.Actor.ActorBase actor, Akka.Actor.IActorContext context) { } public virtual bool CanBeAppliedTo(System.Type actorType) { } } + [System.ObsoleteAttribute("Actor producer pipeline API will be removed in v1.5.")] public abstract class ActorProducerPluginBase : Akka.Actor.IActorProducerPlugin where TActor : Akka.Actor.ActorBase { @@ -691,6 +695,7 @@ namespace Akka.Actor public abstract class ExtendedActorSystem : Akka.Actor.ActorSystem { protected ExtendedActorSystem() { } + [System.ObsoleteAttribute("Actor producer pipeline API will be removed in v1.5.")] public abstract Akka.Actor.ActorProducerPipelineResolver ActorPipelineResolver { get; } public abstract Akka.Actor.IInternalActorRef Guardian { get; } public abstract Akka.Actor.IInternalActorRef LookupRoot { get; } @@ -925,6 +930,7 @@ namespace Akka.Actor void Stop(Akka.Actor.IActorRef child); void UnbecomeStacked(); } + [System.ObsoleteAttribute("Actor producer pipeline API will be removed in v1.5.")] public interface IActorProducerPlugin { void AfterIncarnated(Akka.Actor.ActorBase actor, Akka.Actor.IActorContext context); diff --git a/src/core/Akka/Actor/ActorProducerPipeline.cs b/src/core/Akka/Actor/ActorProducerPipeline.cs index fb6cbdbe77d..58e086d669c 100644 --- a/src/core/Akka/Actor/ActorProducerPipeline.cs +++ b/src/core/Akka/Actor/ActorProducerPipeline.cs @@ -18,6 +18,7 @@ namespace Akka.Actor /// /// Plugin interface used to define /// + [Obsolete("Actor producer pipeline API will be removed in v1.5.")] public interface IActorProducerPlugin { /// @@ -45,6 +46,7 @@ public interface IActorProducerPlugin /// /// Base actor producer pipeline plugin class. /// + [Obsolete("Actor producer pipeline API will be removed in v1.5.")] public abstract class ActorProducerPluginBase : IActorProducerPlugin { /// @@ -75,6 +77,7 @@ public virtual void BeforeIncarnated(ActorBase actor, IActorContext context) { } /// /// Base generic actor producer pipeline plugin class. /// + [Obsolete("Actor producer pipeline API will be removed in v1.5.")] public abstract class ActorProducerPluginBase : IActorProducerPlugin where TActor : ActorBase { /// @@ -115,6 +118,7 @@ public virtual void BeforeIncarnated(TActor actor, IActorContext context) { } /// /// Class used to resolving actor producer pipelines depending on actor type. /// + [Obsolete("Actor producer pipeline API will be removed in v1.5.")] public class ActorProducerPipelineResolver { private readonly Lazy _log; @@ -230,6 +234,7 @@ private bool AlreadyExists(IActorProducerPlugin plugin) /// /// TBD /// + [Obsolete("Actor producer pipeline API will be removed in v1.5.")] public class ActorProducerPipeline : IEnumerable { private Lazy _log; diff --git a/src/core/Akka/Actor/ExtendedActorSystem.cs b/src/core/Akka/Actor/ExtendedActorSystem.cs index c09c690abb3..cdbc9fab28a 100644 --- a/src/core/Akka/Actor/ExtendedActorSystem.cs +++ b/src/core/Akka/Actor/ExtendedActorSystem.cs @@ -5,6 +5,8 @@ // //----------------------------------------------------------------------- +using System; + namespace Akka.Actor { /// @@ -41,6 +43,7 @@ public abstract class ExtendedActorSystem : ActorSystem /// Gets the actor producer pipeline resolver for current actor system. It may be used by /// Akka plugins to inject custom behavior directly into actor creation chain. /// + [Obsolete("Actor producer pipeline API will be removed in v1.5.")] public abstract ActorProducerPipelineResolver ActorPipelineResolver { get; } ///